QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#617859#9415. MatrixsyssWA 0ms3832kbC++20453b2024-10-06 17:25:582024-10-06 17:25:59

Judging History

你现在查看的是最新测评结果

  • [2024-10-06 17:25:59]
  • 评测
  • 测评结果:WA
  • 用时:0ms
  • 内存:3832kb
  • [2024-10-06 17:25:58]
  • 提交

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)