結果
問題 | No.24 数当てゲーム |
ユーザー |
![]() |
提出日時 | 2015-02-20 13:55:16 |
言語 | Python2 (2.7.18) |
結果 |
AC
|
実行時間 | 12 ms / 5,000 ms |
コード長 | 354 bytes |
コンパイル時間 | 52 ms |
コンパイル使用メモリ | 7,040 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-06-23 21:24:31 |
合計ジャッジ時間 | 724 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 10 |
ソースコード
N = input() candidate = set(xrange(10)) for i in xrange(N): A, B, C, D, R = raw_input().split() numbers = map(int, (A, B, C, D)) if R == 'YES': for x in xrange(10): if not x in numbers: candidate.discard(x) else: for x in numbers: candidate.discard(x) print candidate.pop()