結果

問題 No.1009 面積の求め方
ユーザー RK PythonRK Python
提出日時 2020-06-08 18:49:45
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 25 ms / 2,000 ms
コード長 195 bytes
コンパイル時間 90 ms
コンパイル使用メモリ 10,708 KB
実行使用メモリ 9,068 KB
最終ジャッジ日時 2023-08-26 23:15:10
合計ジャッジ時間 1,795 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 22 ms
8,900 KB
testcase_01 AC 22 ms
8,880 KB
testcase_02 AC 21 ms
8,988 KB
testcase_03 AC 21 ms
8,920 KB
testcase_04 AC 20 ms
8,872 KB
testcase_05 AC 21 ms
9,064 KB
testcase_06 AC 20 ms
8,916 KB
testcase_07 AC 21 ms
8,992 KB
testcase_08 AC 20 ms
9,020 KB
testcase_09 AC 20 ms
8,928 KB
testcase_10 AC 20 ms
8,984 KB
testcase_11 AC 20 ms
9,068 KB
testcase_12 AC 25 ms
8,836 KB
testcase_13 AC 21 ms
8,900 KB
testcase_14 AC 20 ms
8,896 KB
testcase_15 AC 20 ms
8,844 KB
testcase_16 AC 21 ms
8,996 KB
testcase_17 AC 20 ms
8,988 KB
testcase_18 AC 20 ms
9,040 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from decimal import Decimal
a,b = [int(i) for i in input().split()]
area = lambda x: x**3*Decimal("0.3333333333") - (a + b)*x**2*Decimal("0.5") + a*b*x
print(abs(area(max(a,b)) - area(min(a,b))))
0