QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#617859 | #9415. Matrix | syss | WA | 0ms | 3832kb | C++20 | 453b | 2024-10-06 17:25:58 | 2024-10-06 17:25:59 |
Judging History
answer
#include <bits/stdc++.h>
using namespace std;
int main() {
ios::sync_with_stdio(false);
cin.tie(nullptr);
int n;
cin >> n;
int now = 1;
cout << "Yes\n";
vector g(n, vector<int>(n, 1));
g[0][1] = 2;
g[1][0] = 3;
g[1][1] = 4;
for (int i = 0; i < n; i++) {
for (int j = 0; j < n; j++) {
cout << g[i][j] << ' ';
}
cout << '\n';
}
return 0;
}
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 100
Accepted
time: 0ms
memory: 3832kb
input:
2
output:
Yes 1 2 3 4
result:
ok Correct. (1 test case)
Test #2:
score: -100
Wrong Answer
time: 0ms
memory: 3596kb
input:
3
output:
Yes 1 2 1 3 4 1 1 1 1
result:
wrong answer Integer 5 didn't appear. (test case 1)