QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#113508#6641. XOR Diceneko_nyaaWA 1ms3604kbC++23462b2023-06-18 10:10:192023-06-18 10:10:20

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:10:20]
  • 评测
  • 测评结果:WA
  • 用时:1ms
  • 内存:3604kb
  • [2023-06-18 10:10:19]
  • 提交

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*d << ' ';
		}
		cout << '\n';
		n--;
	}

	for (int i = 0; i < n/2; i++) {
		for (int j = 0; j < 12; j++) {
			cout << (1 << 6)*j*d + 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: 0ms
memory: 3604kb

input:

3 2

output:

0 128 256 384 512 640 
1 129 257 385 513 641 
769 897 1025 1153 1281 1409 

result:

ok Correct answer

Test #2:

score: -100
Wrong Answer
time: 1ms
memory: 3436kb

input:

100 60

output:

1 3841 7681 11521 15361 19201 
23041 26881 30721 34561 38401 42241 
2 3842 7682 11522 15362 19202 
23042 26882 30722 34562 38402 42242 
3 3843 7683 11523 15363 19203 
23043 26883 30723 34563 38403 42243 
4 3844 7684 11524 15364 19204 
23044 26884 30724 34564 38404 42244 
5 3845 7685 11525 15365 1920...

result:

wrong answer Invalid output