結果

問題 No.1305 Speak of the Devil
ユーザー naniwazunaniwazu
提出日時 2020-12-02 01:26:25
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 122 bytes
コンパイル時間 298 ms
コンパイル使用メモリ 87,016 KB
実行使用メモリ 71,516 KB
最終ジャッジ日時 2023-10-11 04:15:11
合計ジャッジ時間 3,661 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 74 ms
71,384 KB
testcase_02 AC 73 ms
71,320 KB
testcase_03 WA -
testcase_04 AC 73 ms
71,456 KB
testcase_05 AC 76 ms
71,424 KB
testcase_06 AC 77 ms
71,280 KB
testcase_07 AC 76 ms
71,456 KB
testcase_08 WA -
testcase_09 AC 75 ms
71,204 KB
testcase_10 AC 73 ms
71,152 KB
testcase_11 AC 75 ms
71,488 KB
testcase_12 AC 75 ms
71,184 KB
testcase_13 AC 74 ms
71,516 KB
testcase_14 AC 76 ms
71,320 KB
testcase_15 AC 75 ms
71,188 KB
testcase_16 AC 74 ms
71,376 KB
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
testcase_20 AC 74 ms
71,408 KB
testcase_21 WA -
testcase_22 WA -
testcase_23 WA -
testcase_24 AC 75 ms
71,320 KB
testcase_25 AC 73 ms
71,508 KB
testcase_26 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

p,q = map(int,input().split())
ans = q
if p == 1:
    ans = min(ans,1)
else:
    ans = min(ans,p**3*(1-1/p)**2)
print(ans)
0