結果

問題 No.128 お年玉(1)
ユーザー aoharu9825aoharu9825
提出日時 2019-07-18 21:46:08
言語 C
(gcc 12.3.0)
結果
TLE  
実行時間 -
コード長 490 bytes
コンパイル時間 239 ms
コンパイル使用メモリ 30,848 KB
実行使用メモリ 8,212 KB
最終ジャッジ日時 2024-04-08 19:55:06
合計ジャッジ時間 6,776 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
6,676 KB
testcase_01 AC 1 ms
6,676 KB
testcase_02 AC 1 ms
6,676 KB
testcase_03 AC 109 ms
6,676 KB
testcase_04 AC 1 ms
6,676 KB
testcase_05 AC 1 ms
6,676 KB
testcase_06 AC 1 ms
6,676 KB
testcase_07 AC 1 ms
6,676 KB
testcase_08 AC 1 ms
6,676 KB
testcase_09 TLE -
testcase_10 -- -
testcase_11 -- -
testcase_12 -- -
testcase_13 -- -
testcase_14 -- -
testcase_15 -- -
testcase_16 -- -
testcase_17 -- -
testcase_18 -- -
testcase_19 -- -
testcase_20 -- -
testcase_21 -- -
testcase_22 -- -
testcase_23 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

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

typedef long long int ll;

ll MAX(ll a, ll b){return a>b?a:b;}
ll MIN(ll a, ll b){return a>b?b:a;}
int compare(const void* a, const void* b){return *(int*)a - *(int*)b;}
ll digits(ll a){ll tmp=a; ll cnt=0; while(tmp>0){tmp/=10; cnt+=1;} return cnt;}

int main(void){
    ll n,m;
    scanf("%lld%lld", &n,&m);

    ll cnt = 0;
    while(cnt*1000*m <= n){
        cnt += 1;
    }

    printf("%lld\n", (cnt-1)*1000);
}
0