結果

問題 No.1009 面積の求め方
ユーザー d9etd9et
提出日時 2020-03-20 21:30:02
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 74 ms / 2,000 ms
コード長 114 bytes
コンパイル時間 388 ms
コンパイル使用メモリ 87,048 KB
実行使用メモリ 71,400 KB
最終ジャッジ日時 2023-08-21 15:20:21
合計ジャッジ時間 2,575 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 69 ms
71,108 KB
testcase_01 AC 69 ms
71,156 KB
testcase_02 AC 70 ms
71,276 KB
testcase_03 AC 69 ms
71,348 KB
testcase_04 AC 74 ms
71,232 KB
testcase_05 AC 69 ms
71,216 KB
testcase_06 AC 68 ms
71,052 KB
testcase_07 AC 68 ms
71,300 KB
testcase_08 AC 70 ms
71,340 KB
testcase_09 AC 70 ms
71,348 KB
testcase_10 AC 71 ms
71,316 KB
testcase_11 AC 69 ms
71,260 KB
testcase_12 AC 73 ms
71,264 KB
testcase_13 AC 70 ms
71,264 KB
testcase_14 AC 69 ms
71,340 KB
testcase_15 AC 71 ms
71,400 KB
testcase_16 AC 69 ms
71,332 KB
testcase_17 AC 70 ms
70,804 KB
testcase_18 AC 70 ms
71,340 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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