就读文章就行,然后统计每个人各参加了多少场比赛,题目在最后已经告诉你三个人的比赛数了,用他们来验证下就行
#include <cstdio>
#include <iostream>
#include <algorithm>
#include <cmath>
#include <queue>
#include <cstdlib>
#include <cstring>
#include <vector>
#include <set>
#include <map>
using namespace std;
#define ll long long
#define maxn 100005
int num[12] = { 5, 20, 12, 2, 1, 4, 6, 1, 4, 4, 1, 0 };
int main()
{
//freopen("input.txt", "r", stdin);
//freopen("output.txt", "w", stdout);
int n;
scanf("%d", &n);
printf("%d\n", num[n]);
//system("pause");
//while (1);
return 0;
}
C++程序统计特定数据

本文介绍了一个简单的C++程序,该程序通过预定义的数据数组来统计特定的比赛次数。使用了基本的C++语法和标准输入输出操作。
272

被折叠的 条评论
为什么被折叠?



