QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#113507 | #6641. XOR Dice | neko_nyaa | WA | 1ms | 3552kb | C++23 | 458b | 2023-06-18 10:09:07 | 2023-06-18 10:09:11 |
Judging History
answer
#include <bits/stdc++.h>
using namespace std;
#define int long long
signed main() {
ios::sync_with_stdio(0); cin.tie(0);
int n, d; cin >> n >> d;
if (n % 2) {
for (int i = 0; i < 6; i++) {
cout << (1 << 6)*i << ' ';
}
cout << '\n';
n--;
}
for (int i = 0; i < n/2; i++) {
for (int j = 0; j < 12; j++) {
cout << (1 << 6)*j + i + 1 << ' ';
if (j == 5) cout << '\n';
}
cout << '\n';
}
return 0;
}
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 100
Accepted
time: 1ms
memory: 3552kb
input:
3 2
output:
0 64 128 192 256 320 1 65 129 193 257 321 385 449 513 577 641 705
result:
ok Correct answer
Test #2:
score: -100
Wrong Answer
time: 1ms
memory: 3428kb
input:
100 60
output:
1 65 129 193 257 321 385 449 513 577 641 705 2 66 130 194 258 322 386 450 514 578 642 706 3 67 131 195 259 323 387 451 515 579 643 707 4 68 132 196 260 324 388 452 516 580 644 708 5 69 133 197 261 325 389 453 517 581 645 709 6 70 134 198 262 326 390 454 518 582 646 710 7 71 135 199 263 3...
result:
wrong answer Invalid output