結果

問題 No.1009 面積の求め方
ユーザー aaaaaaaaaa2230aaaaaaaaaa2230
提出日時 2022-03-30 23:27:02
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 38 ms / 2,000 ms
コード長 104 bytes
コンパイル時間 230 ms
コンパイル使用メモリ 82,308 KB
実行使用メモリ 53,364 KB
最終ジャッジ日時 2024-04-27 13:12:25
合計ジャッジ時間 1,848 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 37 ms
53,228 KB
testcase_01 AC 37 ms
51,740 KB
testcase_02 AC 37 ms
52,748 KB
testcase_03 AC 37 ms
52,684 KB
testcase_04 AC 36 ms
52,724 KB
testcase_05 AC 37 ms
52,864 KB
testcase_06 AC 37 ms
52,992 KB
testcase_07 AC 38 ms
52,816 KB
testcase_08 AC 38 ms
52,808 KB
testcase_09 AC 38 ms
52,376 KB
testcase_10 AC 38 ms
52,288 KB
testcase_11 AC 38 ms
52,104 KB
testcase_12 AC 37 ms
52,556 KB
testcase_13 AC 38 ms
51,808 KB
testcase_14 AC 37 ms
52,916 KB
testcase_15 AC 37 ms
52,992 KB
testcase_16 AC 38 ms
52,688 KB
testcase_17 AC 38 ms
52,892 KB
testcase_18 AC 37 ms
53,364 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

a,b = map(int,input().split())
def f(x):
    return x**3/3 - (a+b)/2*x**2 + a*b*x
    
print(-f(b)+f(a))
0