結果

問題 No.128 お年玉(1)
ユーザー marutin
提出日時 2015-01-16 23:45:07
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 195 bytes
コンパイル時間 592 ms
コンパイル使用メモリ 54,244 KB
実行使用メモリ 10,148 KB
最終ジャッジ日時 2024-10-01 09:44:11
合計ジャッジ時間 7,087 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 5 WA * 1 TLE * 1 -- * 14
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
using namespace std;

int main() {
  long long n;
  int m;
  cin >> n >> m;

  int i;
  for (i = 0; n >= 1000 * m; ++i) {
    n -= 1000 * m;
  }
  cout << i * 1000 << endl;
}
0