結果
問題 | No.89 どんどんドーナツどーんといこう! |
ユーザー |
|
提出日時 | 2020-03-13 14:07:20 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 3 ms / 5,000 ms |
コード長 | 357 bytes |
コンパイル時間 | 1,087 ms |
コンパイル使用メモリ | 93,564 KB |
最終ジャッジ日時 | 2025-01-09 06:38:02 |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 9 |
ソースコード
#include <iostream> #include <vector> #include <algorithm> #include <map> #include <queue> #include <math.h> using namespace std; typedef long long int ll; int main(){ cin.tie(nullptr); ios::sync_with_stdio(false); double a,b,c; cin >> a >> b >> c; double pi=atan(1)*4; double ret=(b+c)/2.0*2.0*pi*((c-b)/2.0*(c-b)/2.0*pi)*a; printf("%.12f\n",ret); }