結果

問題 No.1009 面積の求め方
ユーザー yatsurugiyatsurugi
提出日時 2020-09-24 11:29:49
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 1,700 ms / 2,000 ms
コード長 147 bytes
コンパイル時間 150 ms
コンパイル使用メモリ 10,712 KB
実行使用メモリ 102,936 KB
最終ジャッジ日時 2023-09-10 13:22:35
合計ジャッジ時間 12,297 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1,700 ms
57,288 KB
testcase_01 AC 326 ms
57,404 KB
testcase_02 AC 332 ms
57,536 KB
testcase_03 AC 327 ms
57,468 KB
testcase_04 AC 319 ms
57,288 KB
testcase_05 AC 326 ms
57,504 KB
testcase_06 AC 335 ms
57,524 KB
testcase_07 AC 321 ms
57,708 KB
testcase_08 AC 331 ms
57,508 KB
testcase_09 AC 337 ms
57,628 KB
testcase_10 AC 330 ms
57,496 KB
testcase_11 AC 329 ms
57,372 KB
testcase_12 AC 331 ms
57,568 KB
testcase_13 AC 334 ms
57,312 KB
testcase_14 AC 336 ms
57,368 KB
testcase_15 AC 334 ms
57,652 KB
testcase_16 AC 332 ms
57,668 KB
testcase_17 AC 340 ms
57,512 KB
testcase_18 AC 335 ms
102,936 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from scipy import integrate

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

y = lambda x: (x - a) * (x - b)
ans, err = integrate.quad(y, a, b)

print(abs(ans))
0