結果
| 問題 |
No.379 五円硬貨
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2016-07-09 11:25:32 |
| 言語 | C90 (gcc 12.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 155 bytes |
| コンパイル時間 | 415 ms |
| コンパイル使用メモリ | 20,352 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-10-13 09:28:28 |
| 合計ジャッジ時間 | 1,126 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 WA * 1 |
| other | AC * 6 WA * 10 |
コンパイルメッセージ
main.c: In function ‘main’:
main.c:6:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
6 | scanf("%lf %lf %lf", &n, &g, &v);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ソースコード
#include <stdio.h>
int main(){
double n, g, v;
scanf("%lf %lf %lf", &n, &g, &v);
n = n / 5;
g = g * n;
g = g / v;
printf("%f\n", g);
return 0;
}