結果
問題 |
No.89 どんどんドーナツどーんといこう!
|
ユーザー |
![]() |
提出日時 | 2019-01-11 20:47:09 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 276 bytes |
コンパイル時間 | 566 ms |
コンパイル使用メモリ | 67,364 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-10-05 23:33:15 |
合計ジャッジ時間 | 1,060 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 9 |
ソースコード
#include <iostream> #define _USE_MATH_DEFINES #include <math.h> using namespace std; int main() { int c, y, x; cin >> c >> y >> x; double r = 1. / 2 * (x - y); double R = 1. / 2 * (x + y); double ans = (2 * M_PI * R) * (M_PI * pow(r, 2)) * c; printf("%.5f\n", ans); }