結果

問題 No.128 お年玉(1)
ユーザー magmag
提出日時 2020-06-14 14:49:57
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
TLE  
実行時間 -
コード長 538 bytes
コンパイル時間 1,720 ms
コンパイル使用メモリ 166,232 KB
実行使用メモリ 9,876 KB
最終ジャッジ日時 2024-04-08 20:15:43
合計ジャッジ時間 7,942 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
6,676 KB
testcase_01 AC 2 ms
6,676 KB
testcase_02 AC 2 ms
6,676 KB
testcase_03 TLE -
testcase_04 -- -
testcase_05 -- -
testcase_06 -- -
testcase_07 -- -
testcase_08 -- -
testcase_09 -- -
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<bits/stdc++.h>

using namespace std;
using ll=long long;
#define rep2(i, a, n) for(int i = (a); i < (n); i++)
#define rep(i, n) rep2(i,0,n)

int main(){
  cin.tie(nullptr);ios_base::sync_with_stdio(false);
  int n,m,hoge=0,ans=0;cin>>n>>m;
  //Yasuo$B$O!"M=;;$,(B N $B1_$"$j!"?F@L$N;R6!(B M $B?M$K$*G/6L$r$"$2$?$$$H;W$C$F$$$k!#(B
  //$B$*G/6L$O(B1000$B1_;fJ>$@$1$K$7$F!"A40w$KJ?Ey!J$9$Y$FF1$86b3[!K$G$+$D(B
  //$B:GBg$N6b3[$r$"$2$?$$(B
  while(hoge<=n){
    hoge+=1000*m;
    ans+=1000;
  }
  cout<<ans-1000<<endl;
}
0