题解 2834: 与指定数字相同的数的个数 摘要: #include using namespace std; int main(){ int a[100],c,sum=0,b; cin>>c; …… 题解列表 2023年11月28日 0 点赞 0 评论 183 浏览 评分:0.0
蓝桥杯基础练习VIP-FJ的字符串 摘要:解题思路:注意事项:参考代码:// 包含标准输入输出库的头文件 #include <stdio.h> // 包含字符串操作库的头文件 #include <string.h> // 主函…… 题解列表 2023年11月28日 1 点赞 0 评论 274 浏览 评分:0.0
题解 1098: 陶陶摘苹果 摘要: #include using namespace std; int a[20000],b,c,sum; int main(){ for(int i=0…… 题解列表 2023年11月28日 0 点赞 0 评论 286 浏览 评分:0.0
or()循环里面的表达式 摘要:解题思路:首先确定n,是有几项相加,然后利用for()循环n次进行相加;其次就是每次计算时要加的项,也就是几个2,我的方法是: 1、先定义a=0; 2、由于后一项都比前一项…… 题解列表 2023年11月28日 0 点赞 0 评论 134 浏览 评分:0.0
新手试了试,大佬们看看 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int i,sz; char arr[20]={0}; gets(arr); sz = sizeof(a…… 题解列表 2023年11月28日 0 点赞 0 评论 99 浏览 评分:0.0
c代码记录之基因相关性(提出问题,用scanf能过,用gets过不了) 摘要:提出问题,用scanf能过,用gets过不了 //用scanf #include #include int main() { cha…… 题解列表 2023年11月29日 0 点赞 0 评论 178 浏览 评分:0.0
蓝桥杯基础练习VIP-字符串对比 摘要:解题思路:如果两个字符串的长度不相等,输出 "1"。如果两个字符串的长度相等,并且在区分大小写的情况下完全相等,输出 "2"。如果两个字符串的长度相等,但在不区分大小写的情况下相等,输出 "3"。如果…… 题解列表 2023年11月29日 0 点赞 0 评论 229 浏览 评分:0.0
c代码记录之石头剪子布 摘要: #include #include int cq(char str1[],char str2[]){ if((str1[0]=='R'&&st…… 题解列表 2023年11月29日 0 点赞 0 评论 219 浏览 评分:0.0
接水问题(他这里接水顺序是按序号定了的,没有用到贪心的思路) 摘要:解题思路:当水龙头数大于或等于学生数时,谁的接水量最高,谁就是所花的总时间,当水龙头数小于学生数时,那就要等前面某个人接完了,建一个数组a[n],表示n个人的接水量,用index表示没完成节水的人数,…… 题解列表 2023年11月29日 0 点赞 0 评论 227 浏览 评分:0.0
奇偶数判断 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n; scanf("%d",&n); if(n%2==0){ print…… 题解列表 2023年11月29日 0 点赞 0 评论 104 浏览 评分:0.0