提交时间:2022-10-15 11:27:05

运行 ID: 60346

#include <bits/stdc++.h> using namespace std; int n,m,a; int main(){ // freopen("S2.in","r",stdin); // freopen("S2.out","w",stdout); cin>>n>>m; if(!m){ for(int i=1;i<=n;i++)cout<<i<<endl; } if(m==1){ cin>>a; for(int i=1;i<=n;i++)cout<<(i+a-1)/a*a<<endl; } return 0; }