結果
| 問題 | No.24 数当てゲーム |
| コンテスト | |
| ユーザー |
reforefo2
|
| 提出日時 | 2020-05-03 18:15:31 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 31 ms / 5,000 ms |
| コード長 | 747 bytes |
| コンパイル時間 | 288 ms |
| コンパイル使用メモリ | 12,800 KB |
| 実行使用メモリ | 10,752 KB |
| 最終ジャッジ日時 | 2024-06-13 03:13:03 |
| 合計ジャッジ時間 | 1,451 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 10 |
ソースコード
N = int(input())
List = []
Numset = [0,1,2,3,4,5,6,7,8,9]
Ans = []
for i in range(N):
List.append(input().split())
for i in range(N):
if List[i][4] == "NO":
a = int(List[i][0])
b = int(List[i][1])
c = int(List[i][2])
d = int(List[i][3])
if a in Numset:
Numset.remove(a)
if b in Numset:
Numset.remove(b)
if c in Numset:
Numset.remove(c)
if d in Numset:
Numset.remove(d)
if List[i][4] == "YES":
for j in range(10):
if j != int(List[i][0]) and j != int(List[i][1]) and j != int(List[i][2]) and j != int(List[i][3]):
if j in Numset:
Numset.remove(j)
print(int(Numset[0]))
reforefo2