| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 86127 | 刘津希 | 19选班长 | C++ | Compile Error | 0 MS | 0 KB | 376 | 2024-07-22 14:44:57 |
#include<bits/stdc++.h> using namespace std; int a[100]; int main() { int n,x,y,z; cin>>n; for(int i=1; i<=n; i++) { cin>>x>>y>>z; a[x]++; a[y]++; a[z]++; } int m=0,k; for(int i=1; i<=n; i++) { if(a[i]>m) { m=a[i]; k=i; } } cout<<k; return 0;
Main.cc: In function 'int main()':
Main.cc:22:12: error: expected '}' at end of input
return 0;
^