結果
| 問題 | 
                            No.89 どんどんドーナツどーんといこう!
                             | 
                    
| コンテスト | |
| ユーザー | 
                             dnish
                         | 
                    
| 提出日時 | 2017-01-04 18:28:47 | 
| 言語 | C++11(廃止可能性あり)  (gcc 13.3.0)  | 
                    
| 結果 | 
                             
                                AC
                                 
                             
                            
                         | 
                    
| 実行時間 | 2 ms / 5,000 ms | 
| コード長 | 250 bytes | 
| コンパイル時間 | 1,464 ms | 
| コンパイル使用メモリ | 158,184 KB | 
| 実行使用メモリ | 5,248 KB | 
| 最終ジャッジ日時 | 2024-10-05 23:04:18 | 
| 合計ジャッジ時間 | 1,968 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge5 / judge1 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 2 | 
| other | AC * 9 | 
ソースコード
#include <bits/stdc++.h>
using namespace std;
#define REP(i,N) for(int i=0;i<N;i++)
int main(){
	int C,Rin,Rout;
	double A,B;
	
	cin>>C>>Rin>>Rout;
	A=M_PI*(Rout-Rin)*(Rout-Rin)/4.0;
	B=2*M_PI*(Rout+Rin)/2.0;
	cout<<fixed<<C*A*B<<endl;
	
	return 0;
}
            
            
            
        
            
dnish