QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#343423#6189. Full Clue Problemucup-team1198#WA 0ms3492kbC++201.3kb2024-03-02 15:47:532024-03-02 15:47:53

Judging History

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

  • [2024-03-02 15:47:53]
  • 评测
  • 测评结果:WA
  • 用时:0ms
  • 内存:3492kb
  • [2024-03-02 15:47:53]
  • 提交

answer

#include <map>
#include <set>
#include <array>
#include <cmath>
#include <deque>
#include <bitset>
#include <random>
#include <string>
#include <vector>
#include <cassert>
#include <complex>
#include <iomanip>
#include <iostream>
#include <algorithm>
#include <unordered_map>
#include <unordered_set>

using namespace std;


int main() {
    ios::sync_with_stdio(false);
    cin.tie(0);
    cout.tie(0);
    
    int n;
    cin >> n;
    vector<vector<int>> tab(n + 2, vector<int>(n + 2, 0));

    // tab[0][0] = 3;
    // tab[n - 1][n - 1] = 3;

    for (int i = 1; i <= n; ++i) {
        tab[i][i - 1] = 2;
        tab[i][i] = 2;
        tab[i][i + 1] = 2;
    }
    tab[1][1] = tab[n][n] = 3;

    for (int i = 1; i <= n; ++i) {
        for (int j = 1; j <= n; ++j) {
            cout << tab[i][j];
        }
        cout << '\n';
    }
    cout << '\n';

    for (int t = -1; t < 2; t += 2) {
        for (int i = 0; i < n; ++i) {
            for (int j = 0; j < n; ++j) {
                if (i == j || (i + t == j)) {
                    cout << 1;
                } else {
                    cout << 0;
                }
            }
            cout << '\n';
        }

        cout << '\n';
    }


    return 0;
}

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 0
Wrong Answer
time: 0ms
memory: 3492kb

input:

5

output:

32000
22200
02220
00222
00023

10000
11000
01100
00110
00011

11000
01100
00110
00011
00001


result:

wrong answer Integer parameter [name=a[i][j]] equals to 32000, violates the range [0, 4]