結果
問題 |
No.89 どんどんドーナツどーんといこう!
|
ユーザー |
![]() |
提出日時 | 2015-08-31 11:19:57 |
言語 | C90 (gcc 12.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 269 bytes |
コンパイル時間 | 118 ms |
コンパイル使用メモリ | 20,992 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-07-18 16:44:25 |
合計ジャッジ時間 | 778 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 2 |
other | WA * 9 |
コンパイルメッセージ
main.c: In function ‘main’: main.c:6:5: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 6 | scanf("%d", &C); | ^~~~~~~~~~~~~~~ main.c:7:5: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 7 | scanf("%d %d", &Ri, &Ro); | ^~~~~~~~~~~~~~~~~~~~~~~~
ソースコード
#include <stdio.h> int main(void){ int C, Ri, Ro; double r, pi = 3.141592653589793238462643383279; scanf("%d", &C); scanf("%d %d", &Ri, &Ro); r = (Ro-Ri) / 2.0; printf("r = %lf\n", r); printf("%lf\n", 2*r*r*(Ri+r)*pi*pi*C); return 0; }