結果
問題 | No.89 どんどんドーナツどーんといこう! |
ユーザー |
|
提出日時 | 2024-03-30 02:06:17 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 3 ms / 5,000 ms |
コード長 | 451 bytes |
コンパイル時間 | 2,008 ms |
コンパイル使用メモリ | 193,432 KB |
最終ジャッジ日時 | 2025-02-20 15:49:33 |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
外部呼び出し有り |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 9 |
コンパイルメッセージ
main.cpp: In function ‘int main()’: main.cpp:18:11: warning: ignoring return value of ‘int system(const char*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 18 | system("pause"); | ~~~~~~^~~~~~~~~
ソースコード
// コピーして使う!#include <bits/stdc++.h>using namespace std;using ll = long long;int main() {double c, rin, rout;cin >> c >> rin >> rout;double radius = 2*((rout-rin)/2+rin) * M_PI;double area = pow(((rout - rin) / 2), 2) * M_PI;double ans = c * area * radius;cout << fixed << setprecision(20);// cout << radius << endl;// cout << area << endl;cout << ans << endl;system("pause");}