結果

問題 No.24 数当てゲーム
コンテスト
ユーザー gorugo30
提出日時 2021-02-22 19:44:49
言語 PyPy3
(7.3.17)
コンパイル:
pypy3 -mpy_compile _filename_
実行:
pypy3 _filename_
結果
AC  
実行時間 25 ms / 5,000 ms
コード長 296 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 119 ms
コンパイル使用メモリ 85,376 KB
実行使用メモリ 52,224 KB
最終ジャッジ日時 2026-04-09 20:49:27
合計ジャッジ時間 1,305 ms
ジャッジサーバーID
(参考情報)
judge1_0 / judge2_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 10
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

N = int(input())
can = [0] * 10
for i in range(N):
    a, b, c, d, r = input().split()
    g = list(map(int, [a, b, c, d]))
    if r == "NO":
        for x in g:
            can[x] = 1
    else:
        for j in range(10):
            if j not in g:
                can[j] = 1
print(can.index(0))
0