結果
問題 | No.24 数当てゲーム |
ユーザー | k0825 |
提出日時 | 2019-03-04 16:41:45 |
言語 | Python3 (3.12.2 + numpy 1.26.4 + scipy 1.12.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 451 bytes |
コンパイル時間 | 762 ms |
コンパイル使用メモリ | 10,844 KB |
実行使用メモリ | 8,260 KB |
最終ジャッジ日時 | 2023-09-05 18:05:49 |
合計ジャッジ時間 | 917 ms |
ジャッジサーバーID (参考情報) |
judge13 / judge11 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 17 ms
8,244 KB |
testcase_01 | AC | 16 ms
8,244 KB |
testcase_02 | AC | 16 ms
8,160 KB |
testcase_03 | AC | 16 ms
8,260 KB |
testcase_04 | WA | - |
testcase_05 | AC | 16 ms
8,156 KB |
testcase_06 | WA | - |
testcase_07 | WA | - |
testcase_08 | WA | - |
testcase_09 | WA | - |
ソースコード
n = int(input()) yes = [] no = [] y_flag = 0 n_flag = 0 for i in range(n): a = input().split() if a[-1] == 'YES': yes.extend(a[:-1]) y_flag += 1 else: no.extend(a[:-1]) n_flag += 1 yes = [_ for _ in set(yes) if yes.count(_) > 1] if y_flag == 0: print(''.join([str(i) for i in range(0, 10) if str(i) not in no])) exit() elif n_flag == 0: print(''.join(yes)) exit() for i in range(len(yes)): if yes[i] not in no: print(yes[i]) exit()