提交时间:2024-04-28 08:45:08
运行 ID: 28610
#include<bits/stdc++.h> #define up(i,l,r) for(int i=(l);i<=(r);++i) #define down(i,l,r) for(int i=(l);i>=(r);--i) #define p_b push_back #define m_p make_pair #define pi pair<int,int> #define p1 first #define p2 second using namespace std; typedef long long ll; typedef unsigned long long ull; const int maxn=2e5+10; const ll inf=1e18; inline ll read(){ ll x=0;short t=1; char ch=getchar(); while(ch<'0'||ch>'9'){ if(ch=='-')t=-1;ch=getchar(); }while(ch>='0'&&ch<='9')x=x*10+ch-'0',ch=getchar(); return x*t; } void slv(){ int n=read(); cout<<"1 "; up(i,n+1,2*n-1)cout<<i<<' ';cout<<endl; }int main(){ slv(); return 0; }