結果
| 問題 | 
                            No.379 五円硬貨
                             | 
                    
| コンテスト | |
| ユーザー | 
                             | 
                    
| 提出日時 | 2016-06-29 15:56:06 | 
| 言語 | C90  (gcc 12.3.0)  | 
                    
| 結果 | 
                             
                                WA
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 185 bytes | 
| コンパイル時間 | 366 ms | 
| コンパイル使用メモリ | 20,480 KB | 
| 実行使用メモリ | 5,248 KB | 
| 最終ジャッジ日時 | 2024-10-11 23:03:05 | 
| 合計ジャッジ時間 | 752 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge1 / judge4 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 1 WA * 1 | 
| other | AC * 6 WA * 10 | 
コンパイルメッセージ
main.c: In function ‘main’:
main.c:11:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   11 |         scanf("%lf %lf %lf", ¥, &mg, &vol);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
            
            ソースコード
#include <stdio.h>
#define COIN 5
int main(void)
{
	double yen;
	double mg;
	double vol;
	scanf("%lf %lf %lf", ¥, &mg, &vol);
	printf("%f\n", ((yen/COIN)*mg)/vol);
	return 0;
}