Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
33577 LYLAKIOI 【BJ】T2 C++ 通过 100 0 MS 256 KB 793 2024-10-11 14:46:28

Tests(4/4):


#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 pi pair<int,int> #define p1 first #define p2 second #define p_b push_back #define m_p make_pair using namespace std; typedef long long ll; const int maxn=1e5+10; 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;cin>>n;n/=2; up(i,1,n/2)cout<<"01";cout<<"10";up(i,1,n/2-1)cout<<"01";cout<<endl; up(i,1,n/2)cout<<"01"; }int main(){ //freopen("another.in","r",stdin); //freopen("another.out","w",stdout); slv(); fclose(stdin); fclose(stdout); return 0; }


测评信息: