QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#151593 | #6743. water235 | malpani | WA | 1ms | 3604kb | C++17 | 430b | 2023-08-27 06:16:37 | 2023-08-27 06:16:39 |
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)<<endl;
for(int i=0;i<x;i++)
{
for(int j=0;j<y;j++)
{
if(i==j || (j>=x&&i==0) || (i>=y)&&j==0)
cout<<'1'<<" ";
else
cout<<'0'<<" ";
}
cout<<endl;
}
return 0;
}
详细
Test #1:
score: 100
Accepted
time: 1ms
memory: 3540kb
input:
2 1
output:
2 1 1
result:
ok The answer is correct.
Test #2:
score: 0
Accepted
time: 1ms
memory: 3512kb
input:
3 3
output:
3 1 0 0 0 1 0 0 0 1
result:
ok The answer is correct.
Test #3:
score: -100
Wrong Answer
time: 1ms
memory: 3604kb
input:
1 4
output:
4 1 1 1 1
result:
wrong answer The answer is wrong: expected = 3, found = 4