結果

問題 No.24 数当てゲーム
ユーザー panapanagdfpanapanagdf
提出日時 2019-09-21 01:51:52
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 472 bytes
コンパイル時間 92 ms
コンパイル使用メモリ 10,832 KB
実行使用メモリ 10,584 KB
最終ジャッジ日時 2023-10-13 10:26:15
合計ジャッジ時間 1,358 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

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