結果
問題 |
No.1009 面積の求め方
|
ユーザー |
![]() |
提出日時 | 2020-04-08 22:18:55 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 519 bytes |
コンパイル時間 | 721 ms |
コンパイル使用メモリ | 81,440 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-07-19 05:46:18 |
合計ジャッジ時間 | 1,428 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 16 |
ソースコード
#include <stdio.h> #include <math.h> #include <iostream> #include <algorithm> #include <vector> #include <numeric> #include <string> #include <map> #include <stack> using namespace std; typedef long long int lli; #define urept(soeji, start, n) for (int soeji = start; soeji < n; soeji++) #define drept(soeji, start, n) for (int soeji = start; soeji > n; soeji--) int main(void) { int a, b; cin >> a >> b; double ans = (b - a) * (b - a) * (b - a); ans = ans / 6; printf("%.7f", ans); return 0; }