QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#235081 | #6634. Central Subset | jzh# | WA | 0ms | 3528kb | C++20 | 555b | 2023-11-02 13:24:30 | 2023-11-02 13:24:31 |
Judging History
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)