結果
問題 |
No.24 数当てゲーム
|
ユーザー |
![]() |
提出日時 | 2024-05-08 00:46:46 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 324 bytes |
コンパイル時間 | 355 ms |
コンパイル使用メモリ | 82,432 KB |
実行使用メモリ | 65,024 KB |
最終ジャッジ日時 | 2024-11-30 22:03:58 |
合計ジャッジ時間 | 1,413 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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)