QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#673922#5438. Half MixedxcyyyyyWA 0ms3872kbC++20398b2024-10-25 11:48:142024-10-25 11:48:14

Judging History

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

  • [2024-10-25 11:48:14]
  • 评测
  • 测评结果:WA
  • 用时:0ms
  • 内存:3872kb
  • [2024-10-25 11:48:14]
  • 提交

answer

#include<bits/stdc++.h>
using namespace std;
#define N 5005
#define M 10005
#define p 998244353
#define ll long long
void work(){
    int n,m;
    scanf("%d%d",&n,&m);
    if((n&1)&&(m&1))return puts("No"),void();
    puts("Yes");
    for(int i=1;i<=n;i++,puts(""))for(int j=1;j<=m;j++)
        printf("%d ",(i+j)&1);
}
int main(){
    int t;scanf("%d",&t);while(t--)
    work();
}

詳細信息

Test #1:

score: 0
Wrong Answer
time: 0ms
memory: 3872kb

input:

2
2 3
1 1

output:

Yes
0 1 0 
1 0 1 
No

result:

wrong answer 12 Mixed Submatrices Found, but 9 Expected (test case 1)