QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#292222 | #6309. Aqre | fstqwq# | WA | 0ms | 3720kb | C++14 | 627b | 2023-12-27 21:10:01 | 2023-12-27 21:10:01 |
Judging History
answer
#include<bits/stdc++.h>
using namespace std;
const int N=1e3+5;
char st[N];
int dt[]={0,2,1,3};
int main(){
int T;scanf("%d",&T);
while(T--){
int n,m;scanf("%d%d",&n,&m);
st[m+1]='\0';
if(n<=3 && m<=3){
for(int i=1;i<=n;i++){
for(int j=1;j<=m;j++)st[j]='1';
printf("%s\n",st+1);
}
}
for(int i=1;i<=n;i++){
for(int j=1;j<=m;j++){
if((dt[i-1]+j)%4==0)st[j]='0';
else st[j]='1';
}
printf("%s\n",st+1);
}
}
return 0;
}
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 0
Wrong Answer
time: 0ms
memory: 3720kb
input:
3 2 2 3 4 3 8
output:
11 11 11 10 1110 1011 1101 11101110 10111011 11011101
result:
wrong answer Integer parameter [name=ans] equals to 11, violates the range [0, 4] (test case 1)