循环数组的元素已知固定,则循环批次i即可 摘要:解题思路:如果在循环输入的每个数组里,各个元素的数量是已知固定的,则可以变成:固定输入abc,循环输入它们的批次i。不要想复杂了,数组嵌套…… 题解列表 2024年12月02日 0 点赞 0 评论 269 浏览 评分:0.0
2799: 奥运奖牌计数(详细注释) 摘要:解题思路:注意事项:参考代码:#include <stdio.h> int main() { int day, Gold, Silver, Bronze, sum_Gold, sum_S…… 题解列表 2024年12月20日 0 点赞 0 评论 441 浏览 评分:0.0
编写题解 2799: 奥运奖牌计数 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h> using namespace std;int main(){ long long n,a=0,b=0,c=0;int j…… 题解列表 2024年12月22日 1 点赞 0 评论 291 浏览 评分:0.0
2025/7/26刷题记录 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a; scanf("%d&qu…… 题解列表 2025年07月26日 0 点赞 0 评论 50 浏览 评分:0.0
2799 奥运奖牌计数 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,gold,silver,bronze,sum=0,sum_go…… 题解列表 2025年08月02日 0 点赞 0 评论 43 浏览 评分:0.0
编写题解 2799: 奥运奖牌计数 摘要:解题思路:注意事项:参考代码:n=int(input())jins=yins=tongs=0for i in range(n): list1=list(map(int,input().split…… 题解列表 2024年02月28日 0 点赞 0 评论 246 浏览 评分:0.0
编写题解 2799: 奥运奖牌计数 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int n,jp=0,yp=0,tp=0,j,y,t…… 题解列表 2024年02月23日 0 点赞 0 评论 144 浏览 评分:0.0
奥运奖牌计数,加油 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){int a, b, c, n,sum=0;int d=0, e=0, f=0;int i;scanf("%d", …… 题解列表 2023年08月17日 0 点赞 0 评论 239 浏览 评分:0.0
写题解 2799: 奥运奖牌计数 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int i,j,n,sum0=0,sum1=0,sum2=0; scanf("%d",&n); …… 题解列表 2024年02月06日 0 点赞 0 评论 128 浏览 评分:0.0