2799: 奥运奖牌计数 摘要:```cpp #include #include using namespace std; int main() { int fmax,maxs=0,a[10001],b[1000…… 题解列表 2023年02月24日 0 点赞 0 评论 330 浏览 评分:7.0
(cC语言超简单版)奥运奖牌计数 摘要:解题思路:分别计算金银铜三种的数量,这里要用到2维数组注意事项:参考代码:#include<stdio.h>int main(){ int n; int a[100][3]; int…… 题解列表 2022年11月12日 0 点赞 0 评论 403 浏览 评分:8.5
奥运奖牌计数(超简单,很容易看懂) 摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int main(){ int n,a,b,c; int a1=0,b1=0,c1=0…… 题解列表 2022年11月05日 0 点赞 0 评论 916 浏览 评分:8.7
2799:不要忘记初始化变量-C语言 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #include<math.h> int main() { int n; int a,b,c; a = 0…… 题解列表 2022年12月20日 0 点赞 0 评论 400 浏览 评分:9.6
java--study||O.o 摘要:参考代码:import java.util.Scanner; public class Main { public static void main(String[] args) …… 题解列表 2024年01月11日 0 点赞 0 评论 189 浏览 评分:9.9
奥运奖牌计数 摘要:解题思路:注意事项:参考代码:// 方式一// #include<stdio.h>// int main()// {// int n,a,b,c;// scanf("%d",&n);/…… 题解列表 2022年12月27日 0 点赞 0 评论 717 浏览 评分:9.9
2799: 奥运奖牌计数 摘要:解题思路:注意事项:参考代码:m1 = m2 = m3 = 0n = int(input())for i in range(0,n): a = list(map(int,input().spli…… 题解列表 2023年02月06日 0 点赞 0 评论 572 浏览 评分:9.9
两种方法,简单易懂!!!! 摘要:解题思路:注意事项:数组可以不开那么大。参考代码:#include<bits/stdc++.h>using namespace std;//int a,b,c;int n,a[101][101],s,…… 题解列表 2023年02月22日 0 点赞 0 评论 376 浏览 评分:9.9
2799: 奥运奖牌计数 摘要:解题思路:首先读入n,然后用循环读入每一天的金、银、铜牌数目,并将其累加到相应的变量中。最后输出累加后的金、银、铜牌总数以及总奖牌数。参考代码:#include <iostream>using nam…… 题解列表 2023年04月10日 0 点赞 0 评论 368 浏览 评分:9.9
奥运奖牌计数 摘要:参考代码: ```c #include int main() { int n; scanf("%d",&n); int a[n][3]; for(int i=0;i…… 题解列表 2023年09月07日 0 点赞 0 评论 535 浏览 评分:9.9