Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
78953 朱子相 19买画笔 C++ Wrong Answer 1 MS 264 KB 276 2024-06-29 15:21:28

Tests(0/5):


Code:

#include <iostream> using namespace std; int main(){ int n,s; cin>>n; int a[100] = {0}; for(int i=1;i<=3*n;i++){ cin>>s; a[s]++; } int mxx = 0,ndd = 0; for(int i=1;i<=n;i++){ if(mxx < a[i]){ mxx = a[i]; ndd = i; } } }


Run Info:

------Input------
9 1 1 9 11 3 3 11 5 9
------Answer-----
5
------Your output-----