結果
| 問題 | No.24 数当てゲーム |
| コンテスト | |
| ユーザー |
panapanagdf
|
| 提出日時 | 2019-09-21 03:16:51 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 550 bytes |
| 記録 | |
| コンパイル時間 | 379 ms |
| コンパイル使用メモリ | 12,416 KB |
| 実行使用メモリ | 13,824 KB |
| 最終ジャッジ日時 | 2024-09-15 11:07:10 |
| 合計ジャッジ時間 | 1,824 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 7 WA * 3 |
ソースコード
import statistics
a=int(input())
c=[0,1,2,3,4,5,6,7,8,9]
d=[]
e=[]
for i in range(a):
b=input().split()
if b[4]=="NO":
d.append(int(b[0]))
d.append(int(b[1]))
d.append(int(b[2]))
d.append(int(b[3]))
else:
e.append(int(b[0]))
e.append(int(b[1]))
e.append(int(b[2]))
e.append(int(b[3]))
if len(d)==12:
for i in c:
if i not in d:
print(i)
else:
for i in e:
if (e.count(i)>=len(e)//4) and (i not in d):
print(i)
break
panapanagdf