結果
| 問題 | No.89 どんどんドーナツどーんといこう! |
| コンテスト | |
| ユーザー |
kongarishisyamo
|
| 提出日時 | 2016-03-03 22:53:46 |
| 言語 | C++11 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 5,000 ms |
| コード長 | 262 bytes |
| 記録 | |
| コンパイル時間 | 791 ms |
| コンパイル使用メモリ | 74,612 KB |
| 実行使用メモリ | 6,400 KB |
| 最終ジャッジ日時 | 2026-04-21 07:43:39 |
| 合計ジャッジ時間 | 2,537 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 9 |
ソースコード
#include<iostream>
#include<cstdio>
#include<cmath>
using namespace std;
#define NMAX 1000000
int main(){
double C,Rin,Rout;
double PI=acos(-1.0);
cin>>C;
cin>>Rin>>Rout;
double A=(Rout-Rin)/2;
double B=Rout-A;
printf("%.10f\n",C*2*A*A*B*PI*PI);
}
kongarishisyamo