c代码记录之报数问题 摘要:解题思路:创建一个数组盛放报数人序号,报完数后未被pass的人,其序号被扩充到数组结尾等待下次报数注意事项:参考代码:#include<stdio.h> #include<stdlib.h> …… 题解列表 2023年11月14日 0 点赞 0 评论 249 浏览 评分:0.0
c代码记录之最大数问题 摘要:解题思路:注意事项:-1仅标记输入结束,不参与比较参考代码:#include<stdio.h> #include<stdlib.h> int main(){ int *num; …… 题解列表 2023年11月14日 0 点赞 0 评论 270 浏览 评分:0.0
c代码记录之角谷猜想-C 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int deal(int m){ if(m%2==0){ printf("%d/2=%d\n",m,…… 题解列表 2023年11月14日 0 点赞 0 评论 272 浏览 评分:0.0
题解 3014: 计算星期几 摘要: #include using namespace std; int main(){ long long a,b,c,d=1; cin>>a>>b; …… 题解列表 2023年11月14日 0 点赞 0 评论 414 浏览 评分:0.0
2824: 求出e的值 摘要:#求e的值 ##题解 一层循环定义累加 二层循环定义另一个数 最后相除 ``` #include using namespace std; int main(){ int m; …… 题解列表 2023年11月14日 0 点赞 0 评论 378 浏览 评分:0.0
题解 3015: 幂的末尾 摘要: #include using namespace std; int main(){ int a,b,c=1000,z=1; cin>>a>>b;…… 题解列表 2023年11月14日 0 点赞 0 评论 311 浏览 评分:0.0
1234: 检查一个数是否为质数 摘要:``` #include using namespace std; int main() { int n; cin >> n; for (int i = 2; i …… 题解列表 2023年11月14日 0 点赞 0 评论 325 浏览 评分:0.0
题解 3016: 第几项 摘要: #include using namespace std; int main(){ int i=0,a,b,c; cin>>b; for…… 题解列表 2023年11月14日 0 点赞 0 评论 335 浏览 评分:0.0
c语言代码解决问题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<stdlib.h>#define N 202#define M 5002int dp[N][M];int weight…… 题解列表 2023年11月14日 0 点赞 0 评论 603 浏览 评分:0.0
最简单易懂,看不懂你来打我! 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int m,n,min,max; int x,y; scanf("%d%d",&m,&n); i…… 题解列表 2023年11月14日 0 点赞 0 评论 284 浏览 评分:0.0