結果
問題 |
No.24 数当てゲーム
|
ユーザー |
|
提出日時 | 2018-01-23 23:04:14 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
RE
|
実行時間 | - |
コード長 | 410 bytes |
コンパイル時間 | 108 ms |
コンパイル使用メモリ | 12,416 KB |
実行使用メモリ | 10,752 KB |
最終ジャッジ日時 | 2024-12-26 03:53:17 |
合計ジャッジ時間 | 1,158 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 4 WA * 5 RE * 1 |
ソースコード
from collections import Counter def main(): N = int(input()) num = [] for x in range(N): A,B,C,D,R = input().split() if R == 'YES': num.append(int(A)) num.append(int(B)) num.append(int(C)) num.append(int(D)) cnt = Counter(num) cnt = max([(v,k) for k,v in cnt.items()])[1] print(cnt) if __name__ == '__main__': main()