結果
| 問題 |
No.24 数当てゲーム
|
| コンテスト | |
| ユーザー |
a_ten
|
| 提出日時 | 2016-03-14 17:08:27 |
| 言語 | Python2 (2.7.18) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 458 bytes |
| コンパイル時間 | 127 ms |
| コンパイル使用メモリ | 7,040 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-10-01 05:19:18 |
| 合計ジャッジ時間 | 719 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 4 WA * 6 |
ソースコード
#coding:utf-8
N=input()
list=[raw_input().split() for i in range(N)]
no=[]
yes=[]
for i in list:
if i[4] == 'NO':
for u in i[:4]:
no.append(u)
else:
for u in i[:4]:
yes.append(u)
if no and not yes:
for i in range(10):
if str(i) not in no:
print i
break
elif not no and yes:
for i in yes:
if 2 <= yes.count(i):
print i
break
else:
for i in yes:
if i not in no and 2 <= yes.count(i):
print i
break
a_ten