yizhi5294

导航

 
#include<bits/stdc++.h>
using namespace std;
int n;
int main(){
    cin>>n; 
    cout<<99-n/2<<" ";
    for(int i=1;i<=n-3-1;i=i+2) 
    {
        cout<<0<<" "<<1<<" ";
    }
    if(n%3==0)cout<<2<<" "<<1<<" "<<0;
    else if(n%3==1)cout<<0<<" "<<2<<" "<<1;
    else cout<<1<<" "<<0<<" "<<2;
    return 0;
}

 

posted on 2023-10-30 21:23  一只5294  阅读(3)  评论(0编辑  收藏  举报