結果
問題 | No.128 お年玉(1) |
ユーザー |
![]() |
提出日時 | 2015-01-25 13:36:47 |
言語 | C90 (gcc 12.3.0) |
結果 |
AC
|
実行時間 | 1 ms / 5,000 ms |
コード長 | 245 bytes |
コンパイル時間 | 432 ms |
コンパイル使用メモリ | 19,968 KB |
実行使用メモリ | 6,824 KB |
最終ジャッジ日時 | 2024-10-01 09:45:20 |
合計ジャッジ時間 | 970 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 21 |
コンパイルメッセージ
main.c: In function ‘main’: main.c:12:3: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 12 | scanf("%ld", &n); | ^~~~~~~~~~~~~~~~ main.c:13:3: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 13 | scanf("%ld", &m); | ^~~~~~~~~~~~~~~~
ソースコード
#include <stdio.h> long solve(long n, long m){ long per_k; per_k = n / m / 1000; return per_k * 1000; } int main(void){ long n, m, res; scanf("%ld", &n); scanf("%ld", &m); res = solve(n, m); printf("%ld", res); return 0; }