結果
問題 |
No.379 五円硬貨
|
ユーザー |
![]() |
提出日時 | 2016-10-10 14:20:23 |
言語 | C90 (gcc 12.3.0) |
結果 |
AC
|
実行時間 | 1 ms / 1,000 ms |
コード長 | 176 bytes |
コンパイル時間 | 125 ms |
コンパイル使用メモリ | 20,736 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-11-22 00:50:35 |
合計ジャッジ時間 | 769 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 16 |
コンパイルメッセージ
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("%0.20lf\n",(double)y/v); return 0; }