2838: 有趣的跳跃 摘要:解题思路:直接看代码注释吧注意事项:注意差值一定不能重复,用一个数组去标记差值。分一个数和多个数两种情况讨论。差值是有n-1个的,比如n=4,那么就有4个数,会产生3个差值。而且题目是允许不排序的,所…… 题解列表 2025年12月23日 1 点赞 0 评论 83 浏览 评分:10.0
1099: 校门外的树 摘要:解题思路:直接看代码注释吧注意事项:参考代码:#include<stdio.h>intmain(){int …… 题解列表 2025年12月23日 2 点赞 0 评论 119 浏览 评分:10.0
C语言两种方法解题 摘要:# //方法一:用switch...case语句/#includeint main(){ int score; scanf("%d",&score); /…… 题解列表 2025年12月22日 0 点赞 0 评论 114 浏览 评分:0.0
C语言+自定义函数求解一元二次方程 摘要:解题思路:注意事项:1. 一元二次方程一般形式:ax² + bx + c = 0(a不能等于0)2. 关键判别式:Δ = b² - 4ac(根的类型由它决定)&nb…… 题解列表 2025年12月22日 0 点赞 0 评论 139 浏览 评分:0.0
电报加密(字母是下一个字母 加一) 摘要:解题思路:1.在a和z之间2.注意在z 时 下一个是a 其他情况都是ch+=1注意事项:参考代码:#include<stdio.h>int main(){ char ch; while(s…… 题解列表 2025年12月21日 0 点赞 0 评论 134 浏览 评分:0.0
给你们看看不用循环的办法 摘要:解题思路:注意事项:参考代码:#include<stdio.h>//数字排序int main(){ int a=0; int b=0; int c=0; scanf("…… 题解列表 2025年12月21日 0 点赞 0 评论 77 浏览 评分:0.0
C语言最优解 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b,c;&nbs…… 题解列表 2025年12月21日 2 点赞 0 评论 119 浏览 评分:0.0
奥运奖牌计数 用数组 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ long n,i,j,A=0,B=0,C=0; scanf("%ld",&…… 题解列表 2025年12月20日 0 点赞 0 评论 53 浏览 评分:0.0
求平均年龄的C语言 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ int N,i,zhong=0; float bing;…… 题解列表 2025年12月20日 0 点赞 0 评论 82 浏览 评分:0.0