結果

問題 No.24 数当てゲーム
ユーザー panapanagdfpanapanagdf
提出日時 2019-09-21 03:16:51
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 550 bytes
コンパイル時間 191 ms
コンパイル使用メモリ 10,916 KB
実行使用メモリ 10,476 KB
最終ジャッジ日時 2023-10-13 14:20:10
合計ジャッジ時間 1,671 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 33 ms
10,460 KB
testcase_01 AC 33 ms
10,256 KB
testcase_02 AC 33 ms
10,240 KB
testcase_03 WA -
testcase_04 AC 33 ms
10,204 KB
testcase_05 WA -
testcase_06 AC 33 ms
10,236 KB
testcase_07 AC 33 ms
10,292 KB
testcase_08 AC 33 ms
10,228 KB
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:
    for i in e:
        if (e.count(i)>=len(e)//4) and (i not in d):
            print(i)
            break
0