結果
問題 | No.89 どんどんドーナツどーんといこう! |
ユーザー |
![]() |
提出日時 | 2019-09-11 20:56:53 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 257 bytes |
コンパイル時間 | 1,492 ms |
コンパイル使用メモリ | 165,444 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-07-02 16:51:12 |
合計ジャッジ時間 | 2,127 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 9 |
ソースコード
#include <bits/stdc++.h>#define PI 3.14159265359using namespace std;int main(){int n, in, out;double r;cin >> n >> in >> out;r = (out-in)/2.0;cout << fixed << setprecision(5) << n*(r*r)*2*(in+r)*(PI*PI) << endl;return 0;}