結果

問題 No.89 どんどんドーナツどーんといこう!
ユーザー treeone
提出日時 2016-05-04 15:56:25
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
AC  
実行時間 2 ms / 5,000 ms
コード長 449 bytes
コンパイル時間 1,068 ms
コンパイル使用メモリ 159,060 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-10-05 22:54:22
合計ジャッジ時間 1,526 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 9
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
#define rep(i,a,n) for(int i=a;i<n;i++)
#define repb(i,a,b) for(int i=a;i>=b;i--)
#define all(a) a.begin(),a.end()
#define o(a) cout<<a<<endl
#define int long long
#define fi first
#define se second
using namespace std;
typedef vector<int> vi;
typedef vector<vi> vvi;
typedef pair<int,int> pii;

signed main(){
	double c,r,R;
	cin>>c>>r>>R;
	double ans=c*pow(acos(-1.0),2)*pow((R-r)/2.0,2)*(R+r);
	printf("%.10lf\n", ans);
}
0