爆零,求助大佬!
查看原帖
爆零,求助大佬!
780757
SY_Nightmare楼主2023/1/11 16:22
#include<bits/stdc++.h>
using namespace std;
int main()
{
	long long n,s,d=0;
	cin>>n;
	long long a,t=0;
	for(int i=1;i<=203;i++)
	{
		cin>>a;
		t++;
		if(a==0) continue;
		if(t%2==1) s=0;
		else s=1;
		for(int j=1;j<=a;j++)
		{
			cout<<s;
			d++;
			if(d%n==0) cout<<endl;
		}
	} 
	return 0;
}
2023/1/11 16:22
加载中...