QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#343423 | #6189. Full Clue Problem | ucup-team1198# | WA | 0ms | 3492kb | C++20 | 1.3kb | 2024-03-02 15:47:53 | 2024-03-02 15:47:53 |
Judging History
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]