编写题解 1394: 永远的丰碑 摘要:解题思路:注意事项:参考代码:#include <stdio.h> #include <string.h> int main () { int n; while(~scanf ("%d"…… 题解列表 2022年12月20日 0 点赞 0 评论 402 浏览 评分:0.0
2809:简便的算法求第N项斐波那契数列-《C语言》 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main() { long long f1 = 1,f2 = 1,f3; int i = 0; int …… 题解列表 2022年12月20日 0 点赞 0 评论 380 浏览 评分:0.0
没人写我就放一个吧 摘要://隨手寫一點吧!递归思想,考虑有无盘子空出的情况,1.有盘子则按每次盘子数量少一的情况,2.如果没有盘子空出也就意味着每个盘子都会最少存在一个果子//当没有苹果了,或者只有一个盘子的时候,那就只有一…… 题解列表 2022年12月20日 0 点赞 1 评论 800 浏览 评分:9.9
C语言数组问题-遍历整个数组-时间复杂度O2 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main() { int arr[100]={0}; int n,i; int cnt,count…… 题解列表 2022年12月21日 0 点赞 0 评论 280 浏览 评分:0.0
3077: 信息学奥赛一本通T1332-周末舞会 摘要:参考代码: ```cpp #include using namespace std; vectorcouples; int men, women; int n; queueq_men, …… 题解列表 2022年12月21日 0 点赞 0 评论 792 浏览 评分:7.3
统计数字字符个数(简单法,同时富含知识讲解) 摘要: 首先我们要知道一个非常重要的一个头文件,那就是ctype这个,因为这个可以用来统计我们像空格,字母,以及数字,还有我们其他的字符,所以这可以极大的缩短我们的用时,也可以降低我们的时间成本,因此我们…… 题解列表 2022年12月21日 1 点赞 0 评论 1400 浏览 评分:9.9
优质题解 围圈报数(c++) 摘要:解题思路: 一种可行的思路是使用一个队列来存储所有人的编号,每次从队头开始报数,数到第 m 个人时将其出列,并从队头开始再次报数。 首先,我们需要初始化一个队列,将所有人的编号存储在队列中。然…… 题解列表 2022年12月21日 0 点赞 0 评论 648 浏览 评分:9.9
有错误请指出 摘要:解题思路:提前将收入定义为浮点型,方便后面计算注意事项:参考代码:#include <stdio.h>int main(){ int r,y; float m; scanf("%d %f %d",&r…… 题解列表 2022年12月21日 0 点赞 0 评论 660 浏览 评分:9.9
绝对值排序 入门级 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ int n; while(~scanf("%d",&n)){//写全 或者写为s…… 题解列表 2022年12月21日 0 点赞 0 评论 226 浏览 评分:0.0
1112: C语言考试练习题_一元二次方程 摘要:解题思路: 注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ int a, b, c; scanf("%d%d%d", &a, &b, &c…… 题解列表 2022年12月21日 0 点赞 0 评论 403 浏览 评分:9.9