結果

問題 No.662 スロットマシーン
ユーザー pluto77pluto77
提出日時 2018-09-20 11:40:48
言語 Python3
(3.11.6 + numpy 1.26.0 + scipy 1.11.3)
結果
AC  
実行時間 42 ms / 2,000 ms
コード長 401 bytes
コンパイル時間 504 ms
コンパイル使用メモリ 10,888 KB
実行使用メモリ 8,400 KB
最終ジャッジ日時 2023-09-25 10:26:41
合計ジャッジ時間 2,068 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
7,728 KB
testcase_01 AC 16 ms
7,808 KB
testcase_02 AC 16 ms
7,828 KB
testcase_03 AC 17 ms
7,952 KB
testcase_04 AC 19 ms
7,840 KB
testcase_05 AC 16 ms
7,776 KB
testcase_06 AC 20 ms
7,808 KB
testcase_07 AC 20 ms
7,880 KB
testcase_08 AC 31 ms
8,364 KB
testcase_09 AC 41 ms
8,228 KB
testcase_10 AC 41 ms
8,328 KB
testcase_11 AC 41 ms
8,376 KB
testcase_12 AC 41 ms
8,280 KB
testcase_13 AC 40 ms
8,400 KB
testcase_14 AC 41 ms
8,332 KB
testcase_15 AC 41 ms
8,260 KB
testcase_16 AC 16 ms
7,804 KB
testcase_17 AC 42 ms
8,324 KB
testcase_18 AC 41 ms
8,364 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#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])
0