循环数组的元素已知固定,则循环批次i即可
摘要:解题思路:如果在循环输入的每个数组里,各个元素的数量是已知固定的,则可以变成:固定输入abc,循环输入它们的批次i。不要想复杂了,数组嵌套……
2799: 奥运奖牌计数(详细注释)
摘要:解题思路:注意事项:参考代码:#include <stdio.h>
int main()
{
int day, Gold, Silver, Bronze, sum_Gold, sum_S……
编写题解 2799: 奥运奖牌计数
摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h> using namespace std;int main(){ long long n,a=0,b=0,c=0;int j……
写题解 2799: 奥运奖牌计数
摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int i,j,n,sum0=0,sum1=0,sum2=0; scanf("%d",&n); ……
2799: 奥运奖牌计数
摘要:解题思路:注意事项:参考代码:#include <iostream> using namespace std; int main(){ int n,sum1=0,sum2=0,sum3=0; ……
题解 2799: 奥运奖牌计数
摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int n,sum=0,summ=0,summm=0……
2799: 奥运奖牌计数
摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ long long sum=0; long l……