while的你会了,来学习一下for吧 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int n,i,sum; for(;;){ scanf("%d",&…… 题解列表 2025年01月12日 0 点赞 0 评论 180 浏览 评分:0.0
在我上一个题解基础下,加上前面那个scanf就可以了 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int n,i,sum,j,p;//注意多定义两个 scanf("…… 题解列表 2025年01月12日 0 点赞 0 评论 167 浏览 评分:0.0
还是for循环 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int n,i,sum; for(;;){ if (scanf(&quo…… 题解列表 2025年01月12日 0 点赞 0 评论 173 浏览 评分:0.0
还是大家喜欢的for循环 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main() { int n, i, sum,j; scanf…… 题解列表 2025年01月12日 0 点赞 0 评论 134 浏览 评分:0.0
会调用函数就可以 摘要:解题思路:注意事项:注意比较输入两个数的大小参考代码:#include <stdio.h>int c(int n) { int length = 1; // 初始…… 题解列表 2025年01月12日 1 点赞 0 评论 164 浏览 评分:0.0
超级简单易懂 摘要:解题思路:先按照行找到最大值,再按照列比对是否为最小值,匹配成功则输出鞍点注意事项:参考代码:l = []for i in range(5): s = list(map(in…… 题解列表 2025年01月12日 0 点赞 0 评论 229 浏览 评分:10.0
运用‘?’快速判断 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int a,b,c,max; &n…… 题解列表 2025年01月12日 14 点赞 0 评论 828 浏览 评分:10.0
模拟报数过程的直接解法 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<stdlib.h>#include<string.h>int main(){&nb…… 题解列表 2025年01月12日 0 点赞 0 评论 305 浏览 评分:0.0
盐水的故事 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){int vul,d,t=0;&…… 题解列表 2025年01月12日 0 点赞 0 评论 113 浏览 评分:0.0
内码对称求解 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){long long int n; …… 题解列表 2025年01月12日 0 点赞 0 评论 111 浏览 评分:0.0