Sponsors

Tag: problem: (E) The same permutation Solution In C/C++

Codeforces Round #411 (Div....

#include <stdio.h> int n; int main() { scanf("%d",&n); if(n%4>1)return printf("NOn"),0; printf("YESn"); for(int i=1;i<n;i+=4) { if(n%4)printf("%d %dn%d %dn%d %dn",i+2,n,i+2,i+3,i+3,n); else...

Advertisement

spot_img