結果
| 問題 | No.24 数当てゲーム |
| コンテスト | |
| ユーザー |
splash9494
|
| 提出日時 | 2024-05-08 00:46:46 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 324 bytes |
| 記録 | |
| コンパイル時間 | 231 ms |
| コンパイル使用メモリ | 85,100 KB |
| 実行使用メモリ | 67,468 KB |
| 最終ジャッジ日時 | 2026-05-24 12:11:39 |
| 合計ジャッジ時間 | 1,978 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 4 WA * 5 RE * 1 |
ソースコード
N = int(input())
states = [0 for _ in range(10)]
ns = [list(input().split()) for _ in range(N)]
for nl in ns:
r, indexes = nl[-1], list(map(int, nl[:-1]))
for i in indexes:
states[i] = 2 if (r == 'NO') or not states[i] else 1
ans_index = states.index(1) if 1 in states else states.index(0)
print(ans_index)
splash9494