結果
| 問題 |
No.79 過小評価ダメ・ゼッタイ
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2016-08-03 10:49:07 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 97 ms / 5,000 ms |
| コード長 | 319 bytes |
| コンパイル時間 | 180 ms |
| コンパイル使用メモリ | 12,672 KB |
| 実行使用メモリ | 12,672 KB |
| 最終ジャッジ日時 | 2024-06-26 08:01:09 |
| 合計ジャッジ時間 | 2,385 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 22 |
ソースコード
dic={1:0,2:0,3:0,4:0,5:0,6:0}
n=int(input())
l=[int(i) for i in input().split()]
for i in range(n):
dic[l[i]]=dic[l[i]]+1
i=i+1
c=[]
for i in range(6):
if dic[i+1]==max(dic[x] for x in dic):
c.append(i+1)
i=i+1
if len(c)>0:
print(max(c))
else:
print(max(dic, key=(lambda x: dic[x])))