結果
問題 |
No.1009 面積の求め方
|
ユーザー |
![]() |
提出日時 | 2020-03-29 01:28:57 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
TLE
|
実行時間 | - |
コード長 | 279 bytes |
コンパイル時間 | 240 ms |
コンパイル使用メモリ | 12,416 KB |
実行使用メモリ | 10,496 KB |
最終ジャッジ日時 | 2025-01-02 12:38:15 |
合計ジャッジ時間 | 24,436 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 12 TLE * 4 |
ソースコード
# coding: utf-8 # Your code here! def func(num): return num**2-a*num-b*num+a*b a,b=map(int,input().split()) dt=10**-5 al=(b-a)*10**5 ans=0 for i in range(al-1): high=(i+1)*10**-5+a low=i*10**-5+a #print(high) ans+=-(func(high)+func(low))/2*dt print(ans)