結果
問題 | No.24 数当てゲーム |
ユーザー | あかりき |
提出日時 | 2021-02-08 06:37:39 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 75 ms / 5,000 ms |
コード長 | 382 bytes |
コンパイル時間 | 632 ms |
コンパイル使用メモリ | 87,032 KB |
実行使用メモリ | 71,564 KB |
最終ジャッジ日時 | 2023-09-18 09:55:48 |
合計ジャッジ時間 | 2,107 ms |
ジャッジサーバーID (参考情報) |
judge13 / judge11 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 74 ms
71,412 KB |
testcase_01 | AC | 73 ms
71,212 KB |
testcase_02 | AC | 73 ms
71,564 KB |
testcase_03 | AC | 73 ms
71,336 KB |
testcase_04 | AC | 75 ms
71,204 KB |
testcase_05 | AC | 74 ms
71,304 KB |
testcase_06 | AC | 74 ms
71,512 KB |
testcase_07 | AC | 74 ms
71,152 KB |
testcase_08 | AC | 73 ms
71,392 KB |
testcase_09 | AC | 73 ms
71,384 KB |
ソースコード
n=int(input()) l=[input().split() for i in range(n)] s=set([i for i in range(10)]) for i in range(n): if l[i][-1]=='YES': L=[] for j in range(4): L.append(int(l[i][j])) for j in range(10): if j not in L: if j in s: s.remove(j) else: for j in range(4): if int(l[i][j]) in s: s.remove(int(l[i][j])) s=list(s) print(s[0])