QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#226256#6641. XOR DicexuxubaobaoWA 0ms3636kbC++17673b2023-10-25 19:08:362023-10-25 19:08:37

Judging History

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

  • [2023-10-25 19:08:37]
  • 评测
  • 测评结果:WA
  • 用时:0ms
  • 内存:3636kb
  • [2023-10-25 19:08:36]
  • 提交

answer

#include <bits/stdc++.h>

using namespace std;
using PII = pair<int,int>;
using ll = long long;

constexpr int N = 2e6 + 10;

int w[N];
void solve() {
	int n, m;
	cin >> n >> m;
	int k = 1;
	for(int i = 1; i <= 6; i ++) {
		k = k * 2;
	}
	ll cur = 1;
	vector<int> ans;
	for(int i = 1; i <= 3; i ++) {
		ans.push_back(cur * m);
		if(i != 1) 	ans.push_back(cur * (m + 1));
		else {
			ans.push_back(0);
		}
		cur *= k;
	}
	for(int i = 1; i <= n; i ++) {
		for(int j = 0; j < 6; j ++) {
			cout << ans[j] << " ";
		}
	}
}

int main() {
	ios::sync_with_stdio(0);
	cin.tie(0);
	cout.tie(0);
	int t;
	t = 1;
	while(t --){
		solve();
	}
}

详细

Test #1:

score: 100
Accepted
time: 0ms
memory: 3636kb

input:

3 2

output:

2 0 128 192 8192 12288 2 0 128 192 8192 12288 2 0 128 192 8192 12288 

result:

ok Correct answer

Test #2:

score: -100
Wrong Answer
time: 0ms
memory: 3632kb

input:

100 60

output:

60 0 3840 3904 245760 249856 60 0 3840 3904 245760 249856 60 0 3840 3904 245760 249856 60 0 3840 3904 245760 249856 60 0 3840 3904 245760 249856 60 0 3840 3904 245760 249856 60 0 3840 3904 245760 249856 60 0 3840 3904 245760 249856 60 0 3840 3904 245760 249856 60 0 3840 3904 245760 249856 60 0 3840 ...

result:

wrong answer Invalid output