結果
| 問題 | No.24 数当てゲーム |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2017-12-10 22:12:16 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 29 ms / 5,000 ms |
| コード長 | 490 bytes |
| コンパイル時間 | 151 ms |
| コンパイル使用メモリ | 12,800 KB |
| 実行使用メモリ | 10,752 KB |
| 最終ジャッジ日時 | 2024-11-30 11:24:53 |
| 合計ジャッジ時間 | 1,104 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 10 |
ソースコード
#!/usr/bin/env python
N = int(input())
inlines = []
for i in range(N):
inlines.append(input().split())
yescount = 0
yesnums = []
nonums = []
for line in inlines:
if line[4] == 'YES':
yesnums += line[:4]
yescount += 1
else:
nonums += line[:4]
if len(set(nonums)) == 9:
ans = list(set(range(10)) - set(map(int, nonums)))
print(ans[0])
exit()
for i in set(yesnums):
if yesnums.count(i)==yescount and nonums.count(i)==0:
print(i)