题解 2799: 奥运奖牌计数

来看看其他人写的题解吧!要先自己动手做才会有提高哦! 
返回题目 | 我来写题解

筛选

奥运奖牌计数 用数组

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ long n,i,j,A=0,B=0,C=0; scanf("%ld",&……

c++简单解法

摘要:#include <iostream>using namespace std;int main() { int n; cin >> n; int sumjin = 0, sum……

2799 奥运奖牌计数

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,gold,silver,bronze,sum=0,sum_go……

2025/7/26刷题记录

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a; scanf("%d&qu……

奥运奖牌计数

摘要:解题思路: 1、先定义一个整型变量 用来表示天数,使用scanf函数输入天数&n……