結果
問題 | No.24 数当てゲーム |
ユーザー | a_ten |
提出日時 | 2016-03-14 17:17:50 |
言語 | Python2 (2.7.18) |
結果 |
AC
|
実行時間 | 14 ms / 5,000 ms |
コード長 | 446 bytes |
コンパイル時間 | 63 ms |
コンパイル使用メモリ | 6,912 KB |
実行使用メモリ | 6,676 KB |
最終ジャッジ日時 | 2024-04-08 11:17:25 |
合計ジャッジ時間 | 724 ms |
ジャッジサーバーID (参考情報) |
judge15 / judge13 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 14 ms
6,676 KB |
testcase_01 | AC | 11 ms
6,676 KB |
testcase_02 | AC | 11 ms
6,676 KB |
testcase_03 | AC | 14 ms
6,676 KB |
testcase_04 | AC | 13 ms
6,676 KB |
testcase_05 | AC | 13 ms
6,676 KB |
testcase_06 | AC | 13 ms
6,676 KB |
testcase_07 | AC | 12 ms
6,676 KB |
testcase_08 | AC | 11 ms
6,676 KB |
testcase_09 | AC | 12 ms
6,676 KB |
ソースコード
#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 len(yes)/4 <= yes.count(i): print i break