結果

問題 No.1009 面積の求め方
ユーザー ashipan
提出日時 2020-04-10 00:17:45
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 298 bytes
コンパイル時間 709 ms
コンパイル使用メモリ 72,380 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-09-14 03:07:41
合計ジャッジ時間 1,629 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 16
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <vector>
#include <algorithm>
#include <cmath>
#define rep(i, a, n) for(int i = a; i < n; i++)
using namespace std;
using ll = long long;
using P = pair<int, int>;

int main()
{
    double a, b;
    cin >> a >> b;
    printf("%.7f\n",  -pow(a-b, 3)/6);
    return 0;
}
0