結果

問題 No.1009 面積の求め方
ユーザー lan-lan-3
提出日時 2020-03-26 23:47:23
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 390 bytes
コンパイル時間 1,596 ms
コンパイル使用メモリ 162,072 KB
実行使用メモリ 6,820 KB
最終ジャッジ日時 2025-01-02 07:42:28
合計ジャッジ時間 2,523 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 16
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
using ll=long long;
using vi = vector<int>;
using Graph = vector<vi>;
using P = pair<int,int>;
const int MOD=(int)1e9+7;
const int INF=(int)1e9;
const ll LINF=(ll)1e18;

int main(){
    double a,b;
    cin >> a >> b;
    cout << fixed << setprecision(12);
    cout << pow(b-a,3)/6 << endl;
}
0