結果

問題 No.1009 面積の求め方
ユーザー toyuzukotoyuzuko
提出日時 2020-03-29 23:56:28
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 22 ms / 2,000 ms
コード長 196 bytes
コンパイル時間 99 ms
コンパイル使用メモリ 10,616 KB
実行使用メモリ 8,284 KB
最終ジャッジ日時 2023-08-30 20:04:17
合計ジャッジ時間 1,935 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 20 ms
8,156 KB
testcase_01 AC 20 ms
8,284 KB
testcase_02 AC 20 ms
8,160 KB
testcase_03 AC 21 ms
8,216 KB
testcase_04 AC 21 ms
8,124 KB
testcase_05 AC 21 ms
8,100 KB
testcase_06 AC 20 ms
8,248 KB
testcase_07 AC 20 ms
8,244 KB
testcase_08 AC 20 ms
8,156 KB
testcase_09 AC 20 ms
8,132 KB
testcase_10 AC 20 ms
8,128 KB
testcase_11 AC 20 ms
8,272 KB
testcase_12 AC 21 ms
8,156 KB
testcase_13 AC 20 ms
8,284 KB
testcase_14 AC 22 ms
8,156 KB
testcase_15 AC 21 ms
8,156 KB
testcase_16 AC 20 ms
8,128 KB
testcase_17 AC 20 ms
8,152 KB
testcase_18 AC 20 ms
8,144 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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

def f(x): 
    return -(x - a) * (x - b)
    
S = [0 for _ in range(10000)]
d = (b - a) / 10000

for i in range(10000):
    S[i] = f(a + d * i) * d

print(sum(S))
0