結果
問題 |
No.24 数当てゲーム
|
ユーザー |
|
提出日時 | 2023-08-27 07:45:02 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 41 ms / 5,000 ms |
コード長 | 317 bytes |
コンパイル時間 | 248 ms |
コンパイル使用メモリ | 12,288 KB |
実行使用メモリ | 10,624 KB |
最終ジャッジ日時 | 2024-12-26 20:14:44 |
合計ジャッジ時間 | 1,274 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 10 |
ソースコード
n = int(input()) ok = [True] * 10 yes = set(list(range(10))) for _ in range(n): a, b, c, d, s = input().split() a, b, c, d = map(int, [a, b, c, d]) if s == "NO": ok[a] = False ok[b] = False ok[c] = False ok[d] = False else: yes &= set([a, b, c, d]) for i in range(10): if ok[i] and i in yes: print(i)