QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#151596 | #6743. water235 | malpani | WA | 1ms | 3572kb | C++17 | 494b | 2023-08-27 06:36:53 | 2023-08-27 06:36:57 |
Judging History
answer
#include <bits/stdc++.h>
#include <iostream>
using namespace std;
int main()
{
int x,y;
cin>>x;
cin>>y;
cout<<max(x,y)-(max(x,y)-min(x,y))<<endl;
for(int i=0;i<x;i++)
{
for(int j=0;j<y;j++)
{
if(i==j || (j>=x&&i==0&&((j-x)%2==1||j==y-1)) || (i>=y)&&j==0&&((i-y)%2==1||i==x-1))
cout<<'1'<<" ";
else
cout<<'0'<<" ";
}
cout<<endl;
}
return 0;
}
詳細信息
Test #1:
score: 0
Wrong Answer
time: 1ms
memory: 3572kb
input:
2 1
output:
1 1 1
result:
wrong answer The answer is wrong: expected = 2, found = 1