結果

問題 No.79 過小評価ダメ・ゼッタイ
ユーザー focus
提出日時 2018-01-24 00:54:57
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 335 bytes
コンパイル時間 623 ms
コンパイル使用メモリ 62,580 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-12-26 03:57:00
合計ジャッジ時間 1,435 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1 WA * 2
other AC * 8 WA * 14
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<iostream>
#include<vector>
#include<algorithm>
#include<cstdio>
#include<cmath>
using namespace std;
int main(){
    long int N,x,L[7]={},max=0,ans;
    cin >> N;
    for(int i=0;i<N;i++){
        cin >> x;
        L[x]++;
    }
    for(int i=1;i<=6;i++){
        if(max<=L[i])    ans=i;
    }
    cout << ans;
    return 0;
}
0