QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#606609 | #8934. Challenge NPC | UESTC_NLNS# | WA | 10ms | 3604kb | C++14 | 743b | 2024-10-03 10:59:40 | 2024-10-03 10:59:45 |
Judging History
answer
#include <iostream>
#include <vector>
using namespace std;
const int N = 2e3 + 5;
using pii = pair<int, int>;
int main() {
int k;
cin.tie(0), cout.tie(0), ios::sync_with_stdio(0);
cin >> k;
int n = 1024;
cout << n << '\n';
for (int i = 1; i <= n; i += 4) {
cout << "1 2 2 1 ";
}
cout << '\n';
for (int i = 5; i <= n; i += 2) {
int j = i % 4 == 1 ? 3 : 1;
for (; j < i; j += 4) {
cout << i << " " << j << '\n';
}
}
for (int i = 2; i <= n; i += 2) {
int j = i % 4 == 2 ? 4 : 2;
for (; j < i; j += 4) {
cout << i << " " << j << '\n';
}
cout << i << " " << i - 1 << '\n';
}
}
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 0
Wrong Answer
time: 10ms
memory: 3604kb
input:
1
output:
1024 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1...
result:
wrong answer Integer parameter [name=col] equals to 5, violates the range [1, 2]