結果

問題 No.24 数当てゲーム
ユーザー deepjugglingdeepjuggling
提出日時 2021-09-12 19:16:26
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 460 bytes
コンパイル時間 162 ms
コンパイル使用メモリ 10,904 KB
実行使用メモリ 7,900 KB
最終ジャッジ日時 2023-09-06 16:14:03
合計ジャッジ時間 1,148 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
7,752 KB
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 AC 15 ms
7,760 KB
testcase_05 AC 14 ms
7,804 KB
testcase_06 AC 14 ms
7,756 KB
testcase_07 AC 15 ms
7,832 KB
testcase_08 AC 14 ms
7,788 KB
testcase_09 AC 14 ms
7,760 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
s = [0] * 10
a = list(range(0,9,1))
for i in range(n):
    tng = list(input().split())
    for j in range(4):
        if tng[4] == "NO":
            s[int(tng[j])] = 1
        else:
            if s[int(tng[j])] != 1:
                s[int(tng[j])] = 2
fra = 0
for i in range(10):
    if s[i] == 2:
        print(i)
        fra = 1
        break
if fra == 0:
    for i in range(10):
        if s[i] == 0:
            print(i)
            break
0