結果

問題 No.24 数当てゲーム
ユーザー concon
提出日時 2019-06-13 20:45:26
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 472 bytes
コンパイル時間 95 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 10,880 KB
最終ジャッジ日時 2024-04-23 14:03:58
合計ジャッジ時間 924 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

from collections import Counter
N=int(input())
string_list=[input() for i in range(N)]
B=[]
C=[]
D=[i for i in range(10)]
for i in range(N):
    A=string_list[i].split()
    if A[4]=="YES":
        B.append(A[:-1])
    else:
        C.append(A[:-1])

if len(B)==0:
    E=[int(fla) for ine in C for fla in ine]
    E=set(E)
    F=list(set(D) ^ E)
    print(F[0])
else:
    E=[fla for ine in B for fla in ine]
    counter = Counter(E)
    print(counter.most_common(1)[0][0])
0