1332: 津津的储蓄计划 摘要:解题思路:数学问题,按照题目描述设变量就行。注意事项:参考代码:#include <stdio.h>int main(){ int inhand = 0;&nbs…… 题解列表 2025年11月22日 1 点赞 0 评论 261 浏览 评分:10.0
一看就会,超详细,超级简单 摘要:解题思路:注意事项:int num=0;参考代码:#include<stdio.h>int main(){ int a,n; int sum=0; scanf("%d%d&quo…… 题解列表 2025年11月22日 1 点赞 1 评论 198 浏览 评分:10.0
一看就会,超详细,超级简单2 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int arr[10]; for(int i=0;i<10;i++){ scanf(&quo…… 题解列表 2025年11月22日 1 点赞 0 评论 179 浏览 评分:10.0
编写题解 1013: [编程入门]Sn的公式求和 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int sum=0; int s=1; int n; int y=0; scanf(&…… 题解列表 2025年11月22日 1 点赞 0 评论 411 浏览 评分:10.0
1044:字符串排序 摘要:解题思路:使用冒泡排序注意事项:由于输入为字符串,因此采用char字符,同时无法直接使用比较符号,因此引入string函数,在比较上采用string compare参考代码:#include"…… 题解列表 2025年11月25日 0 点赞 0 评论 1224 浏览 评分:10.0
1004:母牛的故事 摘要:解题思路:前3年:每年新增1头小牛,总数为年份数(f(1)=1, f(2)=2, f(3)=3)。第4年起:每只3岁及以上的母牛每年产1头小牛,新增数量等于3年前的母牛总数(f(n-3)),叠加…… 题解列表 2025年11月25日 10 点赞 0 评论 1940 浏览 评分:10.0
刷题记录2025/11/26 2773:计算线段长度 摘要:解题思路:注意事项:注意绝对值,注意保留三位小数参考代码:#include<stdio.h>#include<math.h>int main(){ double Xa,Ya,X…… 题解列表 2025年11月26日 2 点赞 0 评论 296 浏览 评分:10.0
2823: 计算分数加减表达式的值 摘要:解题思路:数学题,没那么复杂注意事项:一个公式拿下参考代码:#include <stdio.h>#include <math.h>int main(){ int n; scan…… 题解列表 2025年11月28日 1 点赞 0 评论 129 浏览 评分:10.0
[编程入门]数字的处理与判断 摘要:解题思路:注意事项:看网上的那些答案有些太高级不是很好理解,现在给出两个初学就能做的答案代码,方便理解一下。参考代码:第一种(不使用数组方法):#include <stdio.h>int …… 题解列表 2025年11月28日 2 点赞 0 评论 727 浏览 评分:10.0
题解 2826: 雇佣兵 摘要:解题思路:根据题目描述来写,由于不知道具体要循环几组,所以用到while循环注意事项:初始体力值是0,雇佣兵必须要先用能量元素恢复体力再进行战斗,所以能量消耗程序和战斗值增加程序不要颠倒顺序然后再判断…… 题解列表 2025年11月28日 1 点赞 0 评论 164 浏览 评分:10.0