結果
| 問題 | No.662 スロットマシーン | 
| コンテスト | |
| ユーザー |  rkyiolklo | 
| 提出日時 | 2020-04-21 23:25:37 | 
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 61 ms / 2,000 ms | 
| コード長 | 393 bytes | 
| コンパイル時間 | 255 ms | 
| コンパイル使用メモリ | 12,672 KB | 
| 実行使用メモリ | 10,880 KB | 
| 最終ジャッジ日時 | 2024-10-09 14:19:44 | 
| 合計ジャッジ時間 | 1,932 ms | 
| ジャッジサーバーID (参考情報) | judge4 / judge3 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 19 | 
ソースコード
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])
 #
            
            
            
        