QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#226256 | #6641. XOR Dice | xuxubaobao | WA | 0ms | 3636kb | C++17 | 673b | 2023-10-25 19:08:36 | 2023-10-25 19:08:37 |
Judging History
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