QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#292222#6309. Aqrefstqwq#WA 0ms3720kbC++14627b2023-12-27 21:10:012023-12-27 21:10:01

Judging History

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

  • [2023-12-27 21:10:01]
  • 评测
  • 测评结果:WA
  • 用时:0ms
  • 内存:3720kb
  • [2023-12-27 21:10:01]
  • 提交

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)