QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#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;
}
Details
Tip: Click on the bar to expand more detailed information
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