結果

問題 No.128 お年玉(1)
ユーザー hum_op
提出日時 2015-01-28 22:25:32
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
TLE  
実行時間 -
コード長 228 bytes
コンパイル時間 455 ms
コンパイル使用メモリ 55,784 KB
実行使用メモリ 14,008 KB
最終ジャッジ日時 2024-10-01 09:48:53
合計ジャッジ時間 6,936 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other TLE * 1 -- * 20
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
using namespace std;


int main(){
	int N, M;
	int o = 0;
	cin >> N;
	cin >> M;

	for(;;){
		if(1000 * M <= N){
			o += 1000;
			N -= 1000 * M;
		}else {
			break;
		}
	}
	
	cout << o << endl;

	return 0;
}
	
0