結果

問題 No.1009 面積の求め方
ユーザー syunsukesyunsuke
提出日時 2020-11-09 22:00:21
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 83 ms / 2,000 ms
コード長 119 bytes
コンパイル時間 303 ms
コンパイル使用メモリ 87,204 KB
実行使用メモリ 76,480 KB
最終ジャッジ日時 2023-09-29 22:19:16
合計ジャッジ時間 2,887 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 79 ms
76,344 KB
testcase_01 AC 68 ms
71,276 KB
testcase_02 AC 74 ms
76,420 KB
testcase_03 AC 83 ms
76,464 KB
testcase_04 AC 69 ms
71,264 KB
testcase_05 AC 61 ms
71,216 KB
testcase_06 AC 76 ms
76,456 KB
testcase_07 AC 76 ms
76,452 KB
testcase_08 AC 75 ms
76,144 KB
testcase_09 AC 68 ms
75,872 KB
testcase_10 AC 70 ms
76,012 KB
testcase_11 AC 71 ms
75,748 KB
testcase_12 AC 76 ms
76,296 KB
testcase_13 AC 76 ms
76,204 KB
testcase_14 AC 80 ms
76,240 KB
testcase_15 AC 79 ms
76,260 KB
testcase_16 AC 80 ms
76,480 KB
testcase_17 AC 80 ms
76,340 KB
testcase_18 AC 81 ms
76,352 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

A,B=map(int,input().split())
ans=0
i=A+0
while i<=B:
    ans+=(i**2-(A+B)*i+A*B)*0.00001
    i+=0.00001
print(abs(ans))
0