結果

問題 No.2389 Cheating Code Golf
ユーザー miho-4miho-4
提出日時 2023-07-21 22:23:31
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 228 bytes
コンパイル時間 1,165 ms
コンパイル使用メモリ 81,616 KB
実行使用メモリ 53,688 KB
最終ジャッジ日時 2023-10-21 22:23:51
合計ジャッジ時間 4,101 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 38 ms
53,400 KB
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 AC 37 ms
53,620 KB
testcase_06 AC 37 ms
53,620 KB
testcase_07 AC 37 ms
53,620 KB
testcase_08 WA -
testcase_09 AC 37 ms
53,620 KB
testcase_10 AC 37 ms
53,620 KB
testcase_11 WA -
testcase_12 AC 37 ms
53,620 KB
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 AC 37 ms
53,620 KB
testcase_18 WA -
testcase_19 AC 36 ms
53,620 KB
testcase_20 WA -
testcase_21 WA -
testcase_22 WA -
testcase_23 WA -
testcase_24 AC 38 ms
53,620 KB
testcase_25 WA -
testcase_26 WA -
testcase_27 WA -
testcase_28 WA -
testcase_29 WA -
testcase_30 WA -
testcase_31 WA -
testcase_32 AC 37 ms
53,400 KB
testcase_33 AC 35 ms
53,620 KB
testcase_34 AC 37 ms
53,620 KB
testcase_35 AC 37 ms
53,620 KB
testcase_36 AC 37 ms
53,620 KB
testcase_37 AC 37 ms
53,620 KB
testcase_38 AC 38 ms
53,620 KB
testcase_39 AC 37 ms
53,620 KB
testcase_40 AC 37 ms
53,620 KB
testcase_41 AC 37 ms
53,400 KB
testcase_42 AC 38 ms
53,620 KB
testcase_43 AC 37 ms
53,620 KB
testcase_44 AC 38 ms
53,620 KB
testcase_45 AC 36 ms
53,620 KB
testcase_46 AC 36 ms
53,620 KB
testcase_47 AC 35 ms
53,620 KB
testcase_48 AC 37 ms
53,620 KB
testcase_49 AC 35 ms
53,620 KB
testcase_50 AC 37 ms
53,620 KB
testcase_51 AC 39 ms
53,620 KB
testcase_52 AC 40 ms
53,620 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n,m=map(int,input().split())
L=[list(map(int,input().split())) for _ in range(n)]
ans=0
for a,b,p in L:
  P1=(1-1/p)**m#1度も当たらない確率
  P2=(1-(1-1/p)**m)#当たる確率
  ans+=P1/a
  ans+=P2/(min(a,b))
print(ans)
0