結果

問題 No.1009 面積の求め方
ユーザー SDESTINY_kpr
提出日時 2020-03-20 21:56:32
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 366 bytes
コンパイル時間 1,566 ms
コンパイル使用メモリ 165,664 KB
実行使用メモリ 6,820 KB
最終ジャッジ日時 2024-12-15 05:37:21
合計ジャッジ時間 2,335 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1 WA * 2
other AC * 9 WA * 7
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using P = pair<int,int>;
#define rep(i,n) for(int i=0;i<n;i++)

const ll mod = ll(1e9) + 7;
const int INF = 1<<29;

int main(){
    int a,b;
    cin >> a >> b;
    double ans = 0.0;
    for (double i=a;i<b;i+=0.1){
        ans += 0.1*abs((i-a)*(i-b));
    }
    cout << ans << endl;
    return 0;
}
0