QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#113507#6641. XOR Diceneko_nyaaWA 1ms3552kbC++23458b2023-06-18 10:09:072023-06-18 10:09:11

Judging History

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

  • [2023-08-10 23:21:45]
  • System Update: QOJ starts to keep a history of the judgings of all the submissions.
  • [2023-06-18 10:09:11]
  • 评测
  • 测评结果:WA
  • 用时:1ms
  • 内存:3552kb
  • [2023-06-18 10:09:07]
  • 提交

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