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