結果
| 問題 | 
                            No.89 どんどんドーナツどーんといこう!
                             | 
                    
| コンテスト | |
| ユーザー | 
                             | 
                    
| 提出日時 | 2018-04-22 18:43:40 | 
| 言語 | C++14  (gcc 13.3.0 + boost 1.87.0)  | 
                    
| 結果 | 
                             
                                AC
                                 
                             
                            
                         | 
                    
| 実行時間 | 2 ms / 5,000 ms | 
| コード長 | 270 bytes | 
| コンパイル時間 | 699 ms | 
| コンパイル使用メモリ | 73,524 KB | 
| 実行使用メモリ | 5,248 KB | 
| 最終ジャッジ日時 | 2024-10-05 23:27:05 | 
| 合計ジャッジ時間 | 1,220 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge4 / judge1 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 2 | 
| other | AC * 9 | 
ソースコード
#include<iostream>
#include<cmath>
#include<iomanip>
using namespace std;
int main(){
    int c, l, r;
    cin >> c >> l >> r;
    double d = (r-l) / 2.0;
    double cal = d*d*M_PI * 2*M_PI*(l+d) * c;
    cout << fixed << setprecision(6) << cal << endl;
    return 0;
}