海盗!

发布时间 2023-10-30 21:26:23作者: 一只5294
#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;
}