結果

問題 No.128 お年玉(1)
ユーザー drymouse
提出日時 2020-01-02 21:56:00
言語 C
(gcc 13.3.0)
結果
AC  
実行時間 1 ms / 5,000 ms
コード長 237 bytes
コンパイル時間 311 ms
コンパイル使用メモリ 28,032 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-10-01 11:12:02
合計ジャッジ時間 1,026 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 21
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <stdio.h>
#include <stdlib.h>

int main(void) {
    long long N;
    int M;
    long a, x; // able, X
    scanf("%lld%d", &N, &M);
    
    a = N / 1000;
    x = (a / M) * 1000;
    printf("%ld\n", x);
    return EXIT_SUCCESS;
}
0