結果

問題 No.1009 面積の求め方
ユーザー 308e437718f41d1308e437718f41d1
提出日時 2020-03-20 21:47:55
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 250 bytes
コンパイル時間 413 ms
コンパイル使用メモリ 86,832 KB
実行使用メモリ 71,548 KB
最終ジャッジ日時 2023-08-21 16:05:08
合計ジャッジ時間 2,695 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 69 ms
71,480 KB
testcase_01 AC 68 ms
71,352 KB
testcase_02 WA -
testcase_03 AC 68 ms
71,144 KB
testcase_04 AC 69 ms
71,484 KB
testcase_05 AC 68 ms
71,368 KB
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 AC 70 ms
71,208 KB
testcase_18 AC 68 ms
71,244 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

def resolve():
    import sys

    input = lambda: sys.stdin.readline().rstrip()

    a, b = map(int, input().split())

    ans = - (((3 * a - 1) * b ** 3 - 3 * a * b ** 2 + (3 * a ** 2 - 3 * a ** 3) * b + a ** 3) / 3)
    print(abs(ans))


resolve()
0