結果
問題 |
No.79 過小評価ダメ・ゼッタイ
|
ユーザー |
![]() |
提出日時 | 2020-03-08 13:03:11 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 17 ms / 5,000 ms |
コード長 | 311 bytes |
コンパイル時間 | 1,727 ms |
コンパイル使用メモリ | 168,388 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-11-07 00:48:36 |
合計ジャッジ時間 | 3,124 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 22 |
ソースコード
#include <bits/stdc++.h> #define INF 990000000 //3 using namespace std; int main() { int a[7],res[7]; fill(a,a+7,0); fill(res,res+7,0); int n; cin>>n; for(int i=0;i<n;i++){ int b; cin>>b; a[b]++; res[b]++; } sort(a,a+7); int ty=0; for(int i=0;i<7;i++){ if(res[i]==a[6]){ ty=i; } } cout << ty<<endl; }