結果
問題 |
No.128 お年玉(1)
|
ユーザー |
![]() |
提出日時 | 2020-06-14 14:49:57 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
TLE
|
実行時間 | - |
コード長 | 538 bytes |
コンパイル時間 | 1,594 ms |
コンパイル使用メモリ | 166,880 KB |
実行使用メモリ | 8,576 KB |
最終ジャッジ日時 | 2024-10-01 11:19:42 |
合計ジャッジ時間 | 8,051 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | TLE * 1 -- * 20 |
ソースコード
#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; }