結果
問題 | No.89 どんどんドーナツどーんといこう! |
ユーザー |
![]() |
提出日時 | 2024-08-26 13:49:22 |
言語 | C (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 1 ms / 5,000 ms |
コード長 | 321 bytes |
コンパイル時間 | 397 ms |
コンパイル使用メモリ | 28,288 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-08-26 13:49:24 |
合計ジャッジ時間 | 1,378 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 9 |
ソースコード
#include <stdio.h>int main(){int cal, Rin, Rout;double pi = 3.14159265359, Rmid, Rcir, height, area;scanf("%d%d%d", &cal, &Rin, &Rout);Rmid = (Rin + Rout)/2.0;height = Rmid * 2 * pi;Rcir = Rout - Rmid;area = Rcir * Rcir * pi;printf("%lf\n", area * height * cal);return 0;}