結果
問題 |
No.379 五円硬貨
|
ユーザー |
![]() |
提出日時 | 2016-06-27 17:27:56 |
言語 | C90 (gcc 12.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 191 bytes |
コンパイル時間 | 127 ms |
コンパイル使用メモリ | 20,480 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-10-11 22:24:01 |
合計ジャッジ時間 | 845 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 WA * 1 |
other | AC * 4 WA * 12 |
コンパイルメッセージ
main.c: In function ‘main’: main.c:8:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 8 | scanf("%f",&n); | ^~~~~~~~~~~~~~ main.c:9:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 9 | scanf("%f",&g); | ^~~~~~~~~~~~~~ main.c:10:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 10 | scanf("%f",&v); | ^~~~~~~~~~~~~~
ソースコード
#include<stdio.h> #include<float.h> int main(void){ float n,g,v,t,t1; //int t; scanf("%f",&n); scanf("%f",&g); scanf("%f",&v); t = n/5; t1 = t*g; printf("%f",t1/v); return 0; }