結果
| 問題 | No.1009 面積の求め方 |
| コンテスト | |
| ユーザー |
merom686
|
| 提出日時 | 2020-03-20 21:24:25 |
| 言語 | C++14 (gcc 15.3.0 + boost 1.92.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 1 ms / 2,000 ms |
| + 416µs | |
| コード長 | 311 bytes |
| 記録 | |
| コンパイル時間 | 321 ms |
| コンパイル使用メモリ | 89,236 KB |
| 実行使用メモリ | 9,852 KB |
| 最終ジャッジ日時 | 2026-10-03 20:20:10 |
| 合計ジャッジ時間 | 1,948 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 16 |
ソースコード
#include <iostream>
#include <vector>
#include <string>
#include <algorithm>
#include <cstdio>
#include <cstring>
#include <cmath>
using namespace std;
using ll = long long;
int main() {
int a, b;
cin >> a >> b;
int d = b - a;
printf("%.8f\n", (double)d * d * d / 4 * 2 / 3);
return 0;
}
merom686