結果

問題 No.128 お年玉(1)
ユーザー sorag
提出日時 2022-08-09 22:57:26
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 5,000 ms
コード長 260 bytes
コンパイル時間 635 ms
コンパイル使用メモリ 65,328 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-09-20 03:53:01
合計ジャッジ時間 1,372 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 21
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<iostream>
#include<vector>
#define ll long long
#define P pair<int,int>
#define pb push_back
using namespace std;
int main() {
	ll n,m,ans;
	cin >> n>>m;
	ans = n / m;
	if (ans < 1000) cout <<0<< endl;
	else cout << ans/1000*1000 << endl;
	return 0;
}
0