結果
| 問題 |
No.89 どんどんドーナツどーんといこう!
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2016-08-14 12:00:02 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 5,000 ms |
| コード長 | 359 bytes |
| コンパイル時間 | 657 ms |
| コンパイル使用メモリ | 69,084 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-10-05 22:57:01 |
| 合計ジャッジ時間 | 1,023 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 9 |
ソースコード
#include <cmath>
#include <iomanip>
#include <iostream>
auto main() -> int {
int C, Rin, Rout;
std::cin >> C >> Rin >> Rout;
double PI = 4.0 * std::atan(1.0);
double volume = 0.25 * std::pow(PI, 2) * (Rin + Rout) * std::pow(Rout - Rin, 2);
double calorie = C * volume;
std::cout << std::fixed << std::setprecision(6) << calorie << std::endl;
}