与圆形相关的计算C++ 摘要:解题思路:定义 半径,圆周率,直径,周长,面积。注意事项: 引入#include <iomanip>参考代码:#include <iostream>#include <iomanip>using na…… 题解列表 2023年06月07日 0 点赞 0 评论 695 浏览 评分:9.9
C++字符串连接 摘要:# string ```c++ #include using namespace std; int main() { string a,b; while(cin>…… 题解列表 2023年06月08日 0 点赞 0 评论 460 浏览 评分:0.0
c语言代码解决问题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char str[101]; int n,i; scanf…… 题解列表 2023年06月08日 0 点赞 0 评论 355 浏览 评分:0.0
[编程入门]筛选N以内的素数 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main() { int n; scanf("%d",&n); for(int i=2;i<=n;i++) { int…… 题解列表 2023年06月08日 0 点赞 0 评论 384 浏览 评分:9.9
纯规律,不使用循环 摘要:解题思路:找到规律,不能被平分差的数的是 (x-2)%4 == 0, 然后判断 L,R中有多少个这样的数注意事项:参考代码:#include<bits/stdc++.h>#define ikun co…… 题解列表 2023年06月08日 0 点赞 1 评论 985 浏览 评分:4.0
并查集,时间复杂度O(n^2),数据量达到5000应该也可行 摘要:解题思路: 先合并两座岛各自的,然后在合并组合的 注意事项: 因为有多种组合,因此不要修改原并查集的数据 参考代码: import java.io.BufferedReader; impo…… 题解列表 2023年06月08日 0 点赞 0 评论 1059 浏览 评分:9.9
c语言代码解决问题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a[100][100] = { 0 }, i, j, n, m,sum=0; scanf("…… 题解列表 2023年06月08日 0 点赞 0 评论 487 浏览 评分:0.0
c语言代码解决问题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>double f(int x){ double c; if (x == 1) c = 1.0; else…… 题解列表 2023年06月08日 0 点赞 0 评论 307 浏览 评分:0.0
c语言代码解决问题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,i; long int max = -1000000,a[100],sum=0; …… 题解列表 2023年06月08日 0 点赞 0 评论 855 浏览 评分:0.0