結果
| 問題 | No.24 数当てゲーム | 
| コンテスト | |
| ユーザー |  panapanagdf | 
| 提出日時 | 2019-09-21 01:51:52 | 
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) | 
| 結果 | 
                                WA
                                 
                             | 
| 実行時間 | - | 
| コード長 | 472 bytes | 
| コンパイル時間 | 90 ms | 
| コンパイル使用メモリ | 12,416 KB | 
| 実行使用メモリ | 13,952 KB | 
| 最終ジャッジ日時 | 2024-09-15 07:31:31 | 
| 合計ジャッジ時間 | 1,441 ms | 
| ジャッジサーバーID (参考情報) | judge2 / judge3 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 2 WA * 8 | 
ソースコード
import statistics
a=int(input())
c=[0,1,2,3,4,5,6,7,8,9]
d=[]
e=[]
for i in range(a):
    b=input().split()
    if b[4]=="NO":
        d.append(int(b[0]))
        d.append(int(b[1]))
        d.append(int(b[2]))
        d.append(int(b[3]))
    else:
        e.append(int(b[0]))
        e.append(int(b[1]))
        e.append(int(b[2]))
        e.append(int(b[3]))
if len(d)==12:
    for i in c:
        if i not in d:
            print(i)
else:
    print(statistics.mode(e))
            
            
            
        