编写题解 2830: 数字统计 摘要:#include <bits/stdc++.h>using namespace std;int main(){ int l,r; cin…… 题解列表 2025年11月19日 0 点赞 0 评论 165 浏览 评分:10.0
2812: 球弹跳高度的计算 摘要:解题思路:简单的数学规律问题注意事项:从第二次运动开始到结束,球的运动路程遵循规律,所以i从2开始计算。最后汇总时加上第一次的高度(初始高度)参考代码:#include <stdio.h>…… 题解列表 2025年11月21日 1 点赞 0 评论 262 浏览 评分:10.0
他流一滴泪,我屠一座城 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n; int sum=0; while(scanf("%d"…… 题解列表 2025年11月22日 1 点赞 1 评论 190 浏览 评分:10.0
1332: 津津的储蓄计划 摘要:解题思路:数学问题,按照题目描述设变量就行。注意事项:参考代码:#include <stdio.h>int main(){ int inhand = 0;&nbs…… 题解列表 2025年11月22日 1 点赞 0 评论 271 浏览 评分: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 评论 209 浏览 评分: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 评论 190 浏览 评分: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 评论 421 浏览 评分:10.0
1044:字符串排序 摘要:解题思路:使用冒泡排序注意事项:由于输入为字符串,因此采用char字符,同时无法直接使用比较符号,因此引入string函数,在比较上采用string compare参考代码:#include"…… 题解列表 2025年11月25日 0 点赞 0 评论 1241 浏览 评分: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 评论 1964 浏览 评分:10.0
刷题记录2025/11/26 2773:计算线段长度 摘要:解题思路:注意事项:注意绝对值,注意保留三位小数参考代码:#include<stdio.h>#include<math.h>int main(){ double Xa,Ya,X…… 题解列表 2025年11月26日 2 点赞 0 评论 303 浏览 评分:10.0