結果

問題 No.89 どんどんドーナツどーんといこう!
コンテスト
ユーザー KKT89
提出日時 2020-03-13 14:07:20
言語 C++17
(gcc 15.3.0 + boost 1.92.0 + ACL)
コンパイル:
g++-15 -O2 -lm -std=c++17 -Wuninitialized -DONLINE_JUDGE -o a.out _filename_
実行:
./a.out
結果
AC  
実行時間 1 ms / 5,000 ms
+ 773µs
コード長 357 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 542 ms
コンパイル使用メモリ 110,324 KB
実行使用メモリ 9,920 KB
最終ジャッジ日時 2026-10-13 01:04:11
合計ジャッジ時間 1,789 ms
ジャッジサーバーID
(参考情報)
judge3_0 / judge2_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 9
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

#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);
}
0