結果
| 問題 | No.24 数当てゲーム |
| コンテスト | |
| ユーザー |
nsd_fb
|
| 提出日時 | 2015-02-20 13:55:16 |
| 言語 | PyPy2 (7.3.20) |
| 結果 |
AC
不安定
|
| 実行時間 | 63 ms / 5,000 ms |
| + 53µs | |
| コード長 | 354 bytes |
| 記録 | |
| コンパイル時間 | 71 ms |
| コンパイル使用メモリ | 62,872 KB |
| 実行使用メモリ | 62,244 KB |
| 最終ジャッジ日時 | 2026-11-15 14:09:52 |
| 合計ジャッジ時間 | 2,324 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 13 |
ソースコード
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()
nsd_fb