题解 1129: C语言训练-排序问题<2> 摘要:解题思路:注意事项:参考代码:#include<stdio.h> extern int a = 0; extern int b = 0; extern int c = 0; extern in…… 题解列表 2023年01月11日 0 点赞 0 评论 258 浏览 评分:0.0
用筛法求之N内的素数(水题) 摘要:```c #include int isprime(int n){ int i; if(n…… 题解列表 2023年01月11日 0 点赞 0 评论 290 浏览 评分:0.0
一直不习惯用while,这次解出来啦 摘要:解题思路:用while语句,if判断语句,奇数的判断方法语句余数不为零即可注意事项:别忘了题目给的数字范围哦参考代码:#include "stdio.h"int main(){ int m,n; in…… 题解列表 2023年01月11日 0 点赞 0 评论 375 浏览 评分:0.0
想了几种办法,这种最耗时最少 摘要:解题思路:while循环语句,if判断语句注意事项:认真参考代码:#include "stdio.h"int main(){ int m,n; int sum=0; int num; scanf("…… 题解列表 2023年01月11日 0 点赞 0 评论 340 浏览 评分:0.0
完数的判断 c++代码 摘要: #include #include #include using namespace std; signed main()…… 题解列表 2023年01月11日 0 点赞 0 评论 287 浏览 评分:0.0
线性筛解法,时间复杂度仅为O(n) 摘要:###线性筛解法,时间复杂度仅为O(n)### ```cpp #include using namespace std; const int N = 1e6 + 5; …… 题解列表 2023年01月11日 0 点赞 0 评论 303 浏览 评分:0.0
在后面的的往前面移,前面的直接往后面搬 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int n,m; scanf("%d",&n); int a[n-1]; int i …… 题解列表 2023年01月11日 0 点赞 0 评论 269 浏览 评分:0.0
c++语言解决电报加密 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<cstdio>#include<string.h>using namespace std;void get(char…… 题解列表 2023年01月11日 0 点赞 0 评论 244 浏览 评分:0.0
简简单单无脑列举 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;void GetReal(float x){ cout << x << endl;}void …… 题解列表 2023年01月11日 0 点赞 0 评论 240 浏览 评分:0.0
水题目,只需一个bool 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;bool is_leap(int y){ return y%4 == 0 && y % 100…… 题解列表 2023年01月11日 0 点赞 0 评论 263 浏览 评分:0.0