結果

問題 No.959 tree and fire
ユーザー 👑 H20H20
提出日時 2021-01-28 13:19:10
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 120 bytes
コンパイル時間 528 ms
コンパイル使用メモリ 86,808 KB
実行使用メモリ 72,076 KB
最終ジャッジ日時 2023-09-08 04:22:14
合計ジャッジ時間 7,586 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 AC 73 ms
71,952 KB
testcase_04 AC 71 ms
71,772 KB
testcase_05 AC 69 ms
71,652 KB
testcase_06 AC 67 ms
72,076 KB
testcase_07 AC 70 ms
71,784 KB
testcase_08 AC 68 ms
72,000 KB
testcase_09 WA -
testcase_10 AC 71 ms
71,668 KB
testcase_11 AC 68 ms
71,780 KB
testcase_12 WA -
testcase_13 AC 69 ms
71,652 KB
testcase_14 AC 71 ms
71,892 KB
testcase_15 WA -
testcase_16 AC 71 ms
71,744 KB
testcase_17 AC 70 ms
71,764 KB
testcase_18 AC 69 ms
71,900 KB
testcase_19 AC 68 ms
71,668 KB
testcase_20 WA -
testcase_21 WA -
testcase_22 AC 67 ms
71,752 KB
testcase_23 AC 67 ms
71,868 KB
testcase_24 AC 68 ms
71,888 KB
testcase_25 AC 70 ms
71,464 KB
testcase_26 AC 69 ms
71,832 KB
testcase_27 AC 69 ms
71,560 KB
testcase_28 AC 69 ms
71,932 KB
testcase_29 AC 71 ms
71,768 KB
testcase_30 AC 72 ms
71,872 KB
testcase_31 AC 70 ms
71,976 KB
testcase_32 AC 73 ms
72,000 KB
testcase_33 AC 68 ms
71,888 KB
testcase_34 AC 68 ms
71,904 KB
testcase_35 AC 69 ms
71,464 KB
testcase_36 AC 68 ms
71,932 KB
testcase_37 AC 67 ms
72,036 KB
testcase_38 AC 69 ms
71,660 KB
testcase_39 AC 68 ms
71,672 KB
testcase_40 AC 69 ms
71,936 KB
testcase_41 AC 71 ms
71,656 KB
testcase_42 AC 68 ms
72,072 KB
testcase_43 AC 69 ms
71,840 KB
testcase_44 AC 70 ms
71,800 KB
testcase_45 AC 67 ms
71,356 KB
testcase_46 AC 69 ms
71,732 KB
testcase_47 AC 69 ms
71,588 KB
testcase_48 AC 68 ms
71,684 KB
testcase_49 AC 69 ms
71,668 KB
testcase_50 AC 68 ms
71,448 KB
testcase_51 AC 72 ms
71,404 KB
testcase_52 AC 69 ms
71,324 KB
testcase_53 AC 71 ms
71,484 KB
testcase_54 WA -
testcase_55 AC 72 ms
71,720 KB
testcase_56 AC 70 ms
71,460 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N,M = map(int,input().split())
P = float(input())
ANS = 4*P**3 + 2*(N+M-4)*P**4  + max(N-2,0)*max(M-2,0)*P**5
print(ANS)
0