結果
| 問題 | No.24 数当てゲーム |
| コンテスト | |
| ユーザー |
togatoga
|
| 提出日時 | 2015-08-18 22:09:23 |
| 言語 | PyPy2 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 85 ms / 5,000 ms |
| コード長 | 440 bytes |
| 記録 | |
| コンパイル時間 | 152 ms |
| コンパイル使用メモリ | 77,716 KB |
| 最終ジャッジ日時 | 2025-12-03 16:19:04 |
|
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 10 |
ソースコード
N = input()
ABCDR = []
yes = set()
no = set()
for i in range(0, 10):
yes.add(i)
digit = [0] * 10
for i in range(N):
text = raw_input().split()
if(text[-1] == "YES"):
for j in map(int, text[0:4]):
digit[j] += 1
else:
for j in map(int, text[0:4]):
yes.discard(j)
digit[j] = -1145141919810
if (len(yes) == 1):
print yes.pop()
else:
print digit.index(max(digit))
togatoga