結果
問題 | No.89 どんどんドーナツどーんといこう! |
ユーザー |
![]() |
提出日時 | 2017-03-05 23:16:24 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 290 bytes |
コンパイル時間 | 1,588 ms |
コンパイル使用メモリ | 73,560 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-10-05 23:11:45 |
合計ジャッジ時間 | 1,402 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 9 |
ソースコード
#include <iostream>#include <cmath>#include <iomanip>using namespace std;constexpr double pi = acos(-1.0);int main() {int C;cin >> C;double Ri, Ro;cin >> Ri >> Ro;double r = (Ro-Ri)/2;cout << fixed << setprecision(10) << pi*(Ri+Ro)*r*r*pi * C << endl;}