30pts求调
查看原帖
30pts求调
1049507
Mili_Produce楼主2023/10/16 11:35
#include<bits/stdc++.h>
#define ll long long
#define ull unsigned long long
#define go(i,x,y,z) for(int (i)=(x);(i)<=(y);(i)+=(z))
#define back(i,x,y,z) for(int (i)=(x);(i)>=(y);(i)-=(z))
#define itn int
#define PII pair<int,int>
using namespace std;
inline int read(){
	int x=0,f=1;
	char ch=getchar();
	while(ch<'0'||ch>'9'){
	    if(ch=='-')f=-1;
		ch=getchar();
	}
	while(ch>='0'&&ch<='9'){
	    x=x*10+ch-48;
		ch=getchar();
	}
	return x*f;
}
const int M=2e6+10;
int n,m;
int a[M];
int main(){
	n=read();
	go(i,1,n,1){
		a[i]=read();
	}
	go(i,1,n,1){
		go(j,1,i/2,1){
			swap(a[j],a[i-j+1]);
		}
		go(j,1,i,1){
			if(a[j]==0)a[j]=1;
			else a[j]=0;
		}
	}
	go(i,1,n,1)printf("%d ",a[i]);
    return 0;
}
//Switch on the power line
//Remember to put on PROTECTION
//Lay down your pieces
//And Let’s begin OBJECT CREATION
//Fill in my data parameters INITIALIZATION
//Set up our new world
//And let’s begin the SIMULATION
//If I’m a set of points then I will give you my DIMENSION
//If I’m a circle then I will give you my CIRCUMFERENCE
//If I’m a sine wave then you can sit on all my TANGENT
//If I approach infinity then you can be my LIMITATION
//Switch my current
//To AC to DC
//And then blind my vision
//So dizzy so dizzy
//Oh we can travel
//To A.D. to B.C.
//And we can unite
//So deeply so deeply
//If I can
//If I can give you all the STIMULATIONS
//Then I can
//Then I can be your only SATISFACTION
//If I can make you happy I will run the EXECUTION
//Though we are trapped in this strange strange SIMULATION
//If I’m an eggplant
//Then I will give you my NUTRIENTS
//If I’m a tomato
//Then I will give you ANTIOXIDANTS
//If I’m a tabby cat
//Then I will purr for your ENJOYMENT
//If I’m the only god
//Then you’re the proof of my EXISTENCE
//Switch my gender
//To F to M
//And then do whatever
//From AM to PM
//Oh switch my role
//To S to M
//So we can enter the trance the trance
//If I can If I can feel your VIBRATION
//Then I can Then I can finally be COMPLETION
//Though you have left
//You have left
//You have left
//You have left
//You have left me in ISOLATION
//If I can If I can erase all the pointless FRAGMENTS
//Then maybe Then maybe you won’t leave me so DISHEARTENED
//Challenging your god
//You have made some ILLEGAL ARGUMENTS
//EXECUTION
//EXECUTION
//EXECUTION
//EXECUTION….
//EIN, DOS, TROIS, NE, FEM, LIU
//EXECUTION
//If I can If I can give them all the EXECUTION
//Then I can Then I can be your only EXECUTION
//If I can have you back I will run the EXECUTION
//Though we are trapped We are trapped ah~
//I’ve studied I’ve studied how to properly LO-O-OVE
//Question me Question me I can answer all LO-O-OVE
//I know the algebraic expression of LO-O-OVE
//Though you are free
//I am trapped
//Trappe in LO-O-OVE
//EXECUTION
2023/10/16 11:35
加载中...