結果

問題 No.1009 面積の求め方
ユーザー neetia_neetianeetia_neetia
提出日時 2020-03-28 19:48:47
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 77 ms / 2,000 ms
コード長 177 bytes
コンパイル時間 308 ms
コンパイル使用メモリ 87,420 KB
実行使用メモリ 76,552 KB
最終ジャッジ日時 2023-08-30 18:07:48
合計ジャッジ時間 2,788 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 76 ms
76,436 KB
testcase_01 AC 70 ms
71,932 KB
testcase_02 AC 75 ms
76,360 KB
testcase_03 AC 76 ms
76,496 KB
testcase_04 AC 71 ms
71,824 KB
testcase_05 AC 71 ms
71,760 KB
testcase_06 AC 76 ms
76,428 KB
testcase_07 AC 76 ms
76,404 KB
testcase_08 AC 76 ms
76,424 KB
testcase_09 AC 75 ms
76,432 KB
testcase_10 AC 76 ms
76,396 KB
testcase_11 AC 75 ms
76,372 KB
testcase_12 AC 76 ms
76,212 KB
testcase_13 AC 76 ms
76,420 KB
testcase_14 AC 76 ms
76,552 KB
testcase_15 AC 77 ms
76,216 KB
testcase_16 AC 76 ms
76,384 KB
testcase_17 AC 76 ms
76,428 KB
testcase_18 AC 77 ms
76,368 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

a,b=map(int,input().split())
if b-a<10**(-5):
    print(0)
    exit()
s=a+0
w=b-a
ans=0
while a<=s<=b:
    s+=w/(10**5)
    y=(s-a)*(s-b)*(w/(10**5))
    ans+=abs(y)

print(ans)
0