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