結果

問題 No.1009 面積の求め方
ユーザー miya145592miya145592
提出日時 2023-05-19 01:06:47
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 78 ms / 2,000 ms
コード長 140 bytes
コンパイル時間 255 ms
コンパイル使用メモリ 86,692 KB
実行使用メモリ 76,248 KB
最終ジャッジ日時 2023-08-22 14:30:20
合計ジャッジ時間 2,644 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 76 ms
76,012 KB
testcase_01 AC 76 ms
76,032 KB
testcase_02 AC 76 ms
75,948 KB
testcase_03 AC 75 ms
76,008 KB
testcase_04 AC 78 ms
75,928 KB
testcase_05 AC 75 ms
76,044 KB
testcase_06 AC 76 ms
76,136 KB
testcase_07 AC 76 ms
75,984 KB
testcase_08 AC 75 ms
76,104 KB
testcase_09 AC 76 ms
76,228 KB
testcase_10 AC 75 ms
75,988 KB
testcase_11 AC 76 ms
76,196 KB
testcase_12 AC 76 ms
76,020 KB
testcase_13 AC 75 ms
76,248 KB
testcase_14 AC 75 ms
75,884 KB
testcase_15 AC 76 ms
76,160 KB
testcase_16 AC 77 ms
76,044 KB
testcase_17 AC 77 ms
76,044 KB
testcase_18 AC 76 ms
76,048 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

a, b = map(int, input().split())
f = lambda x:(x-a)*(x-b)
s = 0
for i in range(10**5):
    d = (b-a)/(10**5)
    s+=abs(f(a+d*i))*d
print(s)
0