結果
問題 |
No.128 お年玉(1)
|
ユーザー |
![]() |
提出日時 | 2016-02-04 13:26:33 |
言語 | C90 (gcc 12.3.0) |
結果 |
TLE
|
実行時間 | - |
コード長 | 173 bytes |
コンパイル時間 | 92 ms |
コンパイル使用メモリ | 20,480 KB |
実行使用メモリ | 8,232 KB |
最終ジャッジ日時 | 2024-10-01 10:14:18 |
合計ジャッジ時間 | 6,491 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | TLE * 1 -- * 20 |
コンパイルメッセージ
main.c: In function ‘main’: main.c:7:3: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 7 | scanf("%ld %d",&n,&m); | ^~~~~~~~~~~~~~~~~~~~~
ソースコード
#include<stdio.h> int main(void) { long int n; int m; int k=1000; scanf("%ld %d",&n,&m); while(k*m<=n){ k+=1000; } printf("%d\n",k-1000); return 0; }