結果

問題 No.1009 面積の求め方
ユーザー paruf4paruf4
提出日時 2020-03-20 21:45:12
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 76 ms / 2,000 ms
コード長 146 bytes
コンパイル時間 114 ms
コンパイル使用メモリ 10,540 KB
実行使用メモリ 7,940 KB
最終ジャッジ日時 2023-08-21 15:59:17
合計ジャッジ時間 2,398 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 75 ms
7,728 KB
testcase_01 AC 16 ms
7,808 KB
testcase_02 AC 75 ms
7,780 KB
testcase_03 AC 71 ms
7,896 KB
testcase_04 AC 16 ms
7,792 KB
testcase_05 AC 15 ms
7,788 KB
testcase_06 AC 75 ms
7,880 KB
testcase_07 AC 76 ms
7,736 KB
testcase_08 AC 72 ms
7,736 KB
testcase_09 AC 73 ms
7,856 KB
testcase_10 AC 73 ms
7,788 KB
testcase_11 AC 71 ms
7,788 KB
testcase_12 AC 72 ms
7,804 KB
testcase_13 AC 75 ms
7,784 KB
testcase_14 AC 72 ms
7,788 KB
testcase_15 AC 73 ms
7,940 KB
testcase_16 AC 72 ms
7,780 KB
testcase_17 AC 74 ms
7,808 KB
testcase_18 AC 69 ms
7,724 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

# No.1009    
a,b=map(int,input().split())
n=100000
k=(b-a)/n
ans=0.0
i=0.0
i=a
while i<float(b):
    ans+=abs((i-a)*(i-b)*k)
    i+=k
print(ans)
0