Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
96296 | 刘珩宇 | 19选班长 | C++ | Time Limit Exceeded | 1000 MS | 264 KB | 495 | 2024-11-03 18:14:46 |
#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main(){ int n,x,i,a[11]={},max=0; cin>>n; for(i=1;i<=n*3;i++){ cin>>x; for(i=1;i<=n;i++){ if(x=i){ a[i]+=1; } } } for(i=1;i<=n;i++){ if(a[i]>max){ max=i; } } cout<<max; return 0; }