結果
| 問題 | No.24 数当てゲーム |
| コンテスト | |
| ユーザー |
togatoga
|
| 提出日時 | 2015-08-18 22:09:23 |
| 言語 | Python2 (2.7.18) |
| 結果 |
AC
|
| 実行時間 | 11 ms / 5,000 ms |
| コード長 | 440 bytes |
| コンパイル時間 | 50 ms |
| コンパイル使用メモリ | 6,944 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-07-18 10:15:49 |
| 合計ジャッジ時間 | 616 ms |
|
ジャッジサーバー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