QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#401826#5438. Half Mixedxjt05WA 1ms3616kbC++23607b2024-04-29 15:13:042024-04-29 15:13:04

Judging History

你现在查看的是最新测评结果

  • [2024-04-29 15:13:04]
  • 评测
  • 测评结果:WA
  • 用时:1ms
  • 内存:3616kb
  • [2024-04-29 15:13:04]
  • 提交

answer

#include<iostream>
#include<algorithm>
#include<math.h>
#include<string>
#include<string.h>
#include<queue>
#include<deque>
#include<vector>
#include<map>
#include<set>
#pragma GCC optimize(3,"Ofast","inline")
#define endl "\n"
using namespace std;
typedef long long ll;
ll n,m;
int main()
{
	ll n,m,t;
	cin>>t;
	while(t--)
	{
			cin>>n>>m;
	if((1+n)*n/2*m*(m+1)/2%2==1)
	{
		cout<<"No"<<endl;
	}
	else
	{
		cout<<"Yes"<<endl;
		for(ll i=1;i<=n;i++)
		{
			for(ll j=1;j<=m;j++)
			{
				if(j%2==1)
				cout<<1;
				else
				cout<<0;
			}
			cout<<endl;
		}
	}
}
}

详细

Test #1:

score: 0
Wrong Answer
time: 1ms
memory: 3616kb

input:

2
2 3
1 1

output:

Yes
101
101
No

result:

wrong answer Integer parameter [name=M[i][j]] equals to 101, violates the range [0, 1] (test case 1)