結果
問題 | No.89 どんどんドーナツどーんといこう! |
ユーザー |
![]() |
提出日時 | 2016-01-03 22:17:35 |
言語 | C++11 (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 287 bytes |
コンパイル時間 | 515 ms |
コンパイル使用メモリ | 61,812 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-10-05 22:48:56 |
合計ジャッジ時間 | 1,178 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 9 |
ソースコード
#include<iostream>#include<iomanip>using namespace std;int main(void){long double cal, in, out;long double r, s, ans;cin >> cal >> in >> out;ans = cal * (in+out)*(out-in)*(out-in) /4* 3.141592653589*3.141592653589;cout <<fixed<<setprecision(10)<<ans << endl;return 0;}