QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#624216 | #9415. Matrix | dztlb | WA | 0ms | 3640kb | C++14 | 413b | 2024-10-09 15:15:23 | 2024-10-09 15:15:23 |
Judging History
answer
#include <bits/stdc++.h>
using namespace std;
#define int long long
const int N=1005;
int n;
signed main(){
cin>>n;
puts("Yes");
for(int i=1;i<=n;++i){
cout<<i<<' ';
} cout<<'\n';
for(int i=2;i<=n;++i){
cout<<i+n-1<<' ';
for(int j=2;j<=n;++j){
if(i==n&&j==n) cout<<2*n<<' ';
else cout<<1<<' ';
}
cout<<'\n';
}
return 0;
}
/*
3 4
X.X.
...X
...X
....
....
....
*/
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 100
Accepted
time: 0ms
memory: 3560kb
input:
2
output:
Yes 1 2 3 4
result:
ok Correct. (1 test case)
Test #2:
score: -100
Wrong Answer
time: 0ms
memory: 3640kb
input:
3
output:
Yes 1 2 3 4 1 1 5 1 6
result:
wrong answer The number of quadruples 3 is invalid. (test case 1)