QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#235081#6634. Central Subsetjzh#WA 0ms3528kbC++20555b2023-11-02 13:24:302023-11-02 13:24:31

Judging History

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

  • [2023-11-02 13:24:31]
  • 评测
  • 测评结果:WA
  • 用时:0ms
  • 内存:3528kb
  • [2023-11-02 13:24:30]
  • 提交

answer

#include<bits/stdc++.h>
#include <vector>

#define range(x) begin(x), end(x)

using namespace std;


int main() {
    ios::sync_with_stdio(false);
    cin.tie(nullptr);
    int n, d;
    cin >> n >> d;

    int ans = 0;
    for (int i = 0; i < n; i++) {
        vector<int> a = {0, d, (d << 6), (d << 12), (d) + (d << 6), (d) + (d << 12)};

        ans ^= a[rand() % 6];
        for (int c = 0; c < 6; c++) {
            cout << a[c] << " ";
        }
        cout << "\n";
        assert(ans % d == 0);
    }


    return 0;
}

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

2
4 3
1 2
2 3
3 4
6 7
1 2
2 3
3 1
1 4
4 5
5 6
6 4

output:

0 4 256 16384 260 16388 
0 4 256 16384 260 16388 

result:

wrong answer Integer 0 violates the range [1, 2] (test case 1)