結果
| 問題 |
No.1009 面積の求め方
|
| コンテスト | |
| ユーザー |
taklimone
|
| 提出日時 | 2020-03-21 15:16:50 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 3 ms / 2,000 ms |
| コード長 | 234 bytes |
| コンパイル時間 | 1,992 ms |
| コンパイル使用メモリ | 193,152 KB |
| 最終ジャッジ日時 | 2025-01-09 09:10:41 |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 16 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
int main() {
cin.tie(nullptr);
ios::sync_with_stdio(false);
int a,b; cin >> a >> b;
int d = b - a;
cout << fixed << setprecision(10)
<< d * d * d / 6.0 << '\n';
}
taklimone