結果
| 問題 |
No.379 五円硬貨
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2016-06-29 15:51:37 |
| 言語 | C90 (gcc 12.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 207 bytes |
| コンパイル時間 | 105 ms |
| コンパイル使用メモリ | 20,224 KB |
| 実行使用メモリ | 6,824 KB |
| 最終ジャッジ日時 | 2024-10-11 23:03:03 |
| 合計ジャッジ時間 | 843 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 WA * 1 |
| other | AC * 10 WA * 6 |
コンパイルメッセージ
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("%lu %lu %lu", ¥, &mg, &vol);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ソースコード
#include <stdio.h>
#define COIN 5
int main(void)
{
unsigned long yen;
unsigned long mg;
unsigned long vol;
scanf("%lu %lu %lu", ¥, &mg, &vol);
printf("%lu\n", ((yen/COIN)*mg)/vol);
return 0;
}