結果
問題 |
No.1009 面積の求め方
|
ユーザー |
|
提出日時 | 2020-04-03 00:10:24 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 332 bytes |
コンパイル時間 | 1,080 ms |
コンパイル使用メモリ | 96,792 KB |
最終ジャッジ日時 | 2025-01-09 12:36:14 |
ジャッジサーバーID (参考情報) |
judge4 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 16 |
ソースコード
#include <iostream> #include <vector> #include <algorithm> #include <queue> #include <map> #include <set> #include <bitset> #include <math.h> #include <stack> using namespace std; typedef long long ll; int main(){ cin.tie(nullptr); ios::sync_with_stdio(false); int a,b; cin >> a >> b; printf("%.9f\n",(b-a)*(b-a)*(b-a)/6.0 ); }