結果
問題 | No.79 過小評価ダメ・ゼッタイ |
ユーザー |
![]() |
提出日時 | 2016-03-23 15:40:29 |
言語 | Python2 (2.7.18) |
結果 |
AC
|
実行時間 | 57 ms / 5,000 ms |
コード長 | 261 bytes |
コンパイル時間 | 112 ms |
コンパイル使用メモリ | 7,040 KB |
実行使用メモリ | 8,064 KB |
最終ジャッジ日時 | 2024-06-26 07:53:49 |
合計ジャッジ時間 | 1,575 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 22 |
ソースコード
#coding:utf-8 N=input() L=map(int,raw_input().split()) s=[] for i in range(1,7): s.append([L.count(i),i]) ma=0 for i in s: ma=max(ma,i[0]) s_max=[] for i in s: if i[0]==ma: s_max.append(i) if len(s_max)==1: print s_max[0][1] else: print s_max[-1][1]