結果
問題 | No.79 過小評価ダメ・ゼッタイ |
ユーザー |
![]() |
提出日時 | 2015-08-20 08:37:57 |
言語 | Python2 (2.7.18) |
結果 |
AC
|
実行時間 | 119 ms / 5,000 ms |
コード長 | 253 bytes |
コンパイル時間 | 195 ms |
コンパイル使用メモリ | 7,040 KB |
実行使用メモリ | 8,064 KB |
最終ジャッジ日時 | 2024-06-26 07:41:08 |
合計ジャッジ時間 | 1,925 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 22 |
ソースコード
N=input() L = map(int, raw_input().split()) deg = [0] * 7 ans = 0 index = 0 for x in L: deg[x] += 1 if (ans < deg[x]): ans = deg[x] index = x if (ans == deg[x]): ans = deg[x] index = max(index, x) print index