QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#606609#8934. Challenge NPCUESTC_NLNS#WA 10ms3604kbC++14743b2024-10-03 10:59:402024-10-03 10:59:45

Judging History

This is the latest submission verdict.

  • [2024-10-03 10:59:45]
  • Judged
  • Verdict: WA
  • Time: 10ms
  • Memory: 3604kb
  • [2024-10-03 10:59:40]
  • Submitted

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]