結果
| 問題 |
No.959 tree and fire
|
| コンテスト | |
| ユーザー |
H20
|
| 提出日時 | 2021-01-28 13:19:10 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 120 bytes |
| コンパイル時間 | 259 ms |
| コンパイル使用メモリ | 82,304 KB |
| 実行使用メモリ | 52,608 KB |
| 最終ジャッジ日時 | 2024-06-25 21:37:12 |
| 合計ジャッジ時間 | 4,183 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 WA * 1 |
| other | AC * 46 WA * 8 |
ソースコード
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)
H20