結果
| 問題 | No.959 tree and fire |
| コンテスト | |
| ユーザー |
homesentinel
|
| 提出日時 | 2019-12-15 00:12:51 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
WA
(最新)
AC
(最初)
|
| 実行時間 | - |
| コード長 | 401 bytes |
| 記録 | |
| コンパイル時間 | 348 ms |
| コンパイル使用メモリ | 20,952 KB |
| 実行使用メモリ | 15,704 KB |
| 最終ジャッジ日時 | 2026-03-28 04:00:05 |
| 合計ジャッジ時間 | 7,071 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 WA * 1 |
| other | AC * 47 WA * 7 |
ソースコード
#!/Users/takaesumizuki/anaconda3/envs/hoge/bin/python def main(): A, B = map(int, input().split()) P = float(input()) if A < B : A, B = B, A if A == 1 and B == 1: print(P) return if A == 1: ans = (A - 2) * (p ** 3) + 2 * (p ** 2) print(ans) return ans = 4 * (P ** 3) + (A + B - 4) * 2 * (P ** 4) + (A - 2) * (B - 2) * (P ** 5) print(ans) return if __name__ == '__main__': main()
homesentinel