QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#672125 | #9415. Matrix | zhouchenfeng# | WA | 0ms | 3616kb | C++14 | 459b | 2024-10-24 15:43:59 | 2024-10-24 15:43:59 |
Judging History
answer
#include<bits/stdc++.h>
using namespace std;
#define int long long
void solve(){
int n;
cin >> n;
cout << "Yes\n";
for (int i = 1;i <= n;i ++)
cout << i << " \n"[i == n];
for (int i = 2;i <= n;i ++){
for (int j = 1;j <= n;j ++)
cout << i + n - 1 + (i == n && j == n) << " \n"[j == n];
}
}
signed main(){
ios::sync_with_stdio(false);
cin.tie(0); cout.tie(0);
int t = 1;
// cin >> t;
while(t --){
solve();
}
}
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 100
Accepted
time: 0ms
memory: 3608kb
input:
2
output:
Yes 1 2 3 4
result:
ok Correct. (1 test case)
Test #2:
score: -100
Wrong Answer
time: 0ms
memory: 3616kb
input:
3
output:
Yes 1 2 3 4 4 4 5 5 6
result:
wrong answer The number of quadruples 2 is invalid. (test case 1)