QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#288063 | #6309. Aqre | Jacka1# | WA | 0ms | 3752kb | C++20 | 722b | 2023-12-21 18:09:52 | 2023-12-21 18:09:52 |
Judging History
answer
#include<bits/stdc++.h>
#define endl '\n'
using namespace std;
typedef long long ll;
typedef pair<int, int> PII;
const int N = 1e6+5, M = 1e6+5;
const int MOD = 998244353, INF = 0x3f3f3f3f;
int n, m;
void solve() {
cin >> n >> m;
vector<vector<int>> g(n * 2 + 1, vector<int>(m * 2 + 1, 1));
for(int i = 1; i <= n; i += 4)
for(int j = 1; j <= m; j += 4) {
g[i][j] = 0, g[i + 1][j + 2] = 0;
g[i + 2][j + 3] = 0, g[i + 3][j + 1] = 0;
}
for(int i = 1; i <= n; i ++) {
for(int j = 1; j <= m; j ++)
cout << g[i][j];
cout << endl;
}
}
int main() {
ios::sync_with_stdio(false);
cin.tie(nullptr), cout.tie(nullptr);
int t = 1;
cin >> t;
while(t --) solve();
return 0;
}
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 0
Wrong Answer
time: 0ms
memory: 3752kb
input:
3 2 2 3 4 3 8
output:
01 11 0111 1101 1110 01110111 11011101 11101110
result:
wrong output format Expected integer, but "01" found (test case 1)