結果

問題 No.662 スロットマシーン
ユーザー rkyiolklorkyiolklo
提出日時 2020-04-21 23:25:37
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 63 ms / 2,000 ms
コード長 393 bytes
コンパイル時間 275 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 11,008 KB
最終ジャッジ日時 2024-04-17 20:16:05
合計ジャッジ時間 1,995 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 31 ms
10,752 KB
testcase_01 AC 32 ms
10,752 KB
testcase_02 AC 31 ms
10,752 KB
testcase_03 AC 33 ms
10,752 KB
testcase_04 AC 38 ms
10,880 KB
testcase_05 AC 32 ms
10,752 KB
testcase_06 AC 36 ms
10,752 KB
testcase_07 AC 37 ms
10,752 KB
testcase_08 AC 49 ms
10,752 KB
testcase_09 AC 62 ms
11,008 KB
testcase_10 AC 63 ms
11,008 KB
testcase_11 AC 57 ms
10,880 KB
testcase_12 AC 60 ms
10,880 KB
testcase_13 AC 55 ms
10,880 KB
testcase_14 AC 55 ms
10,880 KB
testcase_15 AC 59 ms
10,880 KB
testcase_16 AC 33 ms
10,752 KB
testcase_17 AC 59 ms
11,008 KB
testcase_18 AC 58 ms
10,880 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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