結果
問題 |
No.379 五円硬貨
|
ユーザー |
![]() |
提出日時 | 2016-10-23 17:33:12 |
言語 | C90 (gcc 12.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 171 bytes |
コンパイル時間 | 543 ms |
コンパイル使用メモリ | 20,864 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-11-24 01:57:46 |
合計ジャッジ時間 | 696 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 13 WA * 3 |
コンパイルメッセージ
main.c: In function ‘main’: main.c:10:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 10 | scanf("%ld%ld%ld",&n,&g,&v); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~
ソースコード
#include <stdio.h> int main(void) { long n; long g; long v; long k; long y; scanf("%ld%ld%ld",&n,&g,&v); k=n/5; y=g*k; printf("%f\n",(double)y/v); return 0; }