結果
問題 | No.24 数当てゲーム |
ユーザー | ABKZ |
提出日時 | 2021-06-16 01:08:34 |
言語 | PyPy3 (7.3.13) |
結果 |
AC
|
実行時間 | 73 ms / 5,000 ms |
コード長 | 334 bytes |
コンパイル時間 | 294 ms |
コンパイル使用メモリ | 87,088 KB |
実行使用メモリ | 71,544 KB |
最終ジャッジ日時 | 2023-08-27 22:36:45 |
合計ジャッジ時間 | 1,873 ms |
ジャッジサーバーID (参考情報) |
judge12 / judge15 |
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 72 ms
71,388 KB |
testcase_01 | AC | 71 ms
71,280 KB |
testcase_02 | AC | 71 ms
71,544 KB |
testcase_03 | AC | 71 ms
71,160 KB |
testcase_04 | AC | 71 ms
71,392 KB |
testcase_05 | AC | 70 ms
71,352 KB |
testcase_06 | AC | 73 ms
71,412 KB |
testcase_07 | AC | 72 ms
71,288 KB |
testcase_08 | AC | 73 ms
71,268 KB |
testcase_09 | AC | 70 ms
71,388 KB |
ソースコード
N = int(input()) A = [input().split() for _ in range(N)] yes = [set(map(int, front)) for *front, tail in A if tail == "YES"] no = [set(map(int, front)) for *front, tail in A if tail == "NO"] overt = set(range(10)) for s in yes: overt &= s potential = set(range(10)) for s in no: potential -= s print((potential & overt).pop())