結果
| 問題 | No.24 数当てゲーム | 
| コンテスト | |
| ユーザー |  con | 
| 提出日時 | 2019-06-13 20:45:26 | 
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) | 
| 結果 | 
                                WA
                                 
                             | 
| 実行時間 | - | 
| コード長 | 472 bytes | 
| コンパイル時間 | 96 ms | 
| コンパイル使用メモリ | 12,672 KB | 
| 実行使用メモリ | 10,880 KB | 
| 最終ジャッジ日時 | 2024-10-15 14:10:02 | 
| 合計ジャッジ時間 | 1,272 ms | 
| ジャッジサーバーID (参考情報) | judge2 / judge3 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 3 WA * 7 | 
ソースコード
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])
            
            
            
        