結果
| 問題 | 
                            No.128 お年玉(1)
                             | 
                    
| コンテスト | |
| ユーザー | 
                             umashika
                         | 
                    
| 提出日時 | 2016-02-04 13:27:29 | 
| 言語 | C90  (gcc 12.3.0)  | 
                    
| 結果 | 
                             
                                TLE
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 183 bytes | 
| コンパイル時間 | 142 ms | 
| コンパイル使用メモリ | 20,480 KB | 
| 実行使用メモリ | 8,228 KB | 
| 最終ジャッジ日時 | 2024-10-01 10:14:25 | 
| 合計ジャッジ時間 | 6,552 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge5 / judge2 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| 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("%lld %d",&n,&m);
      |   ^~~~~~~~~~~~~~~~~~~~~~
            
            ソースコード
#include<stdio.h>
int main(void)
{
  long long int n;
  int m;
  int k=1000;
  scanf("%lld %d",&n,&m);
  while(k*m<=n){
    k+=1000;
  }
  printf("%d\n",k-1000);
  return 0;
}
            
            
            
        
            
umashika