結果

問題 No.128 お年玉(1)
ユーザー Vertigo
提出日時 2024-04-02 18:43:19
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 5,000 ms
コード長 265 bytes
コンパイル時間 680 ms
コンパイル使用メモリ 66,012 KB
最終ジャッジ日時 2025-02-20 19:41:11
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 21
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
using namespace std;
#define ll long long

int main(){
    ll n, m, res = 0;
    cin >> n >> m;
    if(n/m < 1000){
        cout << 0 << endl;
    }else{
        res = (n/m) / 1000 * 1000;
        cout << res << endl;
    }
    
    return 0;
}
0