結果

問題 No.24 数当てゲーム
ユーザー kisaragi211kisaragi211
提出日時 2018-01-23 23:04:14
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
RE  
実行時間 -
コード長 410 bytes
コンパイル時間 158 ms
コンパイル使用メモリ 10,744 KB
実行使用メモリ 8,644 KB
最終ジャッジ日時 2023-08-26 23:56:47
合計ジャッジ時間 1,069 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 RE -
testcase_01 AC 19 ms
8,588 KB
testcase_02 WA -
testcase_03 AC 19 ms
8,412 KB
testcase_04 WA -
testcase_05 WA -
testcase_06 AC 18 ms
8,480 KB
testcase_07 WA -
testcase_08 AC 19 ms
8,576 KB
testcase_09 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

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()
0