結果

問題 No.1009 面積の求め方
ユーザー mamimume____momamimume____mo
提出日時 2020-03-20 21:43:45
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 402 bytes
コンパイル時間 749 ms
コンパイル使用メモリ 88,740 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-12-15 05:06:05
合計ジャッジ時間 1,504 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 16
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <algorithm>
#include <cstdio>
#include <cstdlib>
#include <cmath>
#include <fstream>
#include <iostream>
#include <map>
#include <queue>
#include <string>
#include <stack>
#include <vector>
#include <set>
#include <utility>
using namespace std;
typedef long long ll;

int main(){
    int a,b;
    cin >> a >> b;
    
    double ans = (b-a)*(b-a)*(b-a)/(double)6;

    printf("%.14lf\n",ans);
}
0