結果
| 問題 |
No.662 スロットマシーン
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2018-09-20 11:40:48 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 54 ms / 2,000 ms |
| コード長 | 401 bytes |
| コンパイル時間 | 69 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 10,880 KB |
| 最終ジャッジ日時 | 2024-07-18 08:28:45 |
| 合計ジャッジ時間 | 1,591 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 19 |
ソースコード
#yuki662
strs={}
for i in range(5):
strg,coin=input().split()
strs[strg]=int(coin)
n1=int(input())
A=[]
for i in range(n1):
A.append(input())
n2=int(input())
B=[]
for i in range(n2):
B.append(input())
n3=int(input())
C=[]
for i in range(n3):
C.append(input())
s={}
res=0
for i in strs:
s[i]=A.count(i)*B.count(i)*C.count(i)*5
res+=(s[i]/(n1*n2*n3))*strs[i]
print(res)
for i in s:
print(s[i])