QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#226238 | #6641. XOR Dice | euphria | AC ✓ | 0ms | 3684kb | C++20 | 1.0kb | 2023-10-25 18:50:27 | 2023-10-25 18:50:28 |
Judging History
answer
//It's MyGO!!!
//All OK
#include <bits/stdc++.h>
#define ios ios::sync_with_stdio(0);cin.tie(nullptr);cout.tie(0);cout << fixed << setprecision(6)
#define fi first
#define se second
#define INF 0x3f3f3f3f
#define LNF (1ll << 60)
#define ll long long
#define ull unsighed long long
// #define int long long
// #define mod 998244353
#define mod 1000000007
using namespace std;
ll a[6] = {0, 1, 1ll << 6, (1ll << 6) + 1, (1ll << 12), (1ll << 12) + 1ll};
void solve(){
ll n, d;
cin >> n >> d;
// for(int i = 0; i < 6; i ++){
// for(int j = 0; j < 15; j ++)
// cout << ((a[i] >> j) & 1);
// cout << '\n';
// }
for(int i = 1; i <= n; i ++){
for(int j = 0; j < 6; j ++){
cout << a[j] * d << ' ';
}
cout << '\n';
}
}
signed main(){
ios;
// init();
int _ = 1;
// cin >> _;
for(int __ = 1; __ <= _; __ ++){
// cout << "Case #" << __ << ": ";
solve();
}
return 0;
}
详细
Test #1:
score: 100
Accepted
time: 0ms
memory: 3608kb
input:
3 2
output:
0 2 128 130 8192 8194 0 2 128 130 8192 8194 0 2 128 130 8192 8194
result:
ok Correct answer
Test #2:
score: 0
Accepted
time: 0ms
memory: 3664kb
input:
100 60
output:
0 60 3840 3900 245760 245820 0 60 3840 3900 245760 245820 0 60 3840 3900 245760 245820 0 60 3840 3900 245760 245820 0 60 3840 3900 245760 245820 0 60 3840 3900 245760 245820 0 60 3840 3900 245760 245820 0 60 3840 3900 245760 245820 0 60 3840 3900 245760 245820 0 60 3840 3900 245760 245820 ...
result:
ok Correct answer
Test #3:
score: 0
Accepted
time: 0ms
memory: 3664kb
input:
99 2
output:
0 2 128 130 8192 8194 0 2 128 130 8192 8194 0 2 128 130 8192 8194 0 2 128 130 8192 8194 0 2 128 130 8192 8194 0 2 128 130 8192 8194 0 2 128 130 8192 8194 0 2 128 130 8192 8194 0 2 128 130 8192 8194 0 2 128 130 8192 8194 0 2 128 130 8192 8194 0 2 128 130 8192 8194 0 2 128 130 8192 8194 0...
result:
ok Correct answer
Test #4:
score: 0
Accepted
time: 0ms
memory: 3684kb
input:
99 59
output:
0 59 3776 3835 241664 241723 0 59 3776 3835 241664 241723 0 59 3776 3835 241664 241723 0 59 3776 3835 241664 241723 0 59 3776 3835 241664 241723 0 59 3776 3835 241664 241723 0 59 3776 3835 241664 241723 0 59 3776 3835 241664 241723 0 59 3776 3835 241664 241723 0 59 3776 3835 241664 241723 ...
result:
ok Correct answer
Test #5:
score: 0
Accepted
time: 0ms
memory: 3668kb
input:
93 17
output:
0 17 1088 1105 69632 69649 0 17 1088 1105 69632 69649 0 17 1088 1105 69632 69649 0 17 1088 1105 69632 69649 0 17 1088 1105 69632 69649 0 17 1088 1105 69632 69649 0 17 1088 1105 69632 69649 0 17 1088 1105 69632 69649 0 17 1088 1105 69632 69649 0 17 1088 1105 69632 69649 0 17 1088 1105 69632...
result:
ok Correct answer
Test #6:
score: 0
Accepted
time: 0ms
memory: 3608kb
input:
100 49
output:
0 49 3136 3185 200704 200753 0 49 3136 3185 200704 200753 0 49 3136 3185 200704 200753 0 49 3136 3185 200704 200753 0 49 3136 3185 200704 200753 0 49 3136 3185 200704 200753 0 49 3136 3185 200704 200753 0 49 3136 3185 200704 200753 0 49 3136 3185 200704 200753 0 49 3136 3185 200704 200753 ...
result:
ok Correct answer
Test #7:
score: 0
Accepted
time: 0ms
memory: 3672kb
input:
100 5
output:
0 5 320 325 20480 20485 0 5 320 325 20480 20485 0 5 320 325 20480 20485 0 5 320 325 20480 20485 0 5 320 325 20480 20485 0 5 320 325 20480 20485 0 5 320 325 20480 20485 0 5 320 325 20480 20485 0 5 320 325 20480 20485 0 5 320 325 20480 20485 0 5 320 325 20480 20485 0 5 320 325 20480 20485 ...
result:
ok Correct answer
Test #8:
score: 0
Accepted
time: 0ms
memory: 3596kb
input:
1 57
output:
0 57 3648 3705 233472 233529
result:
ok Correct answer
Test #9:
score: 0
Accepted
time: 0ms
memory: 3664kb
input:
1 22
output:
0 22 1408 1430 90112 90134
result:
ok Correct answer
Test #10:
score: 0
Accepted
time: 0ms
memory: 3684kb
input:
1 60
output:
0 60 3840 3900 245760 245820
result:
ok Correct answer
Test #11:
score: 0
Accepted
time: 0ms
memory: 3684kb
input:
1 2
output:
0 2 128 130 8192 8194
result:
ok Correct answer
Test #12:
score: 0
Accepted
time: 0ms
memory: 3612kb
input:
10 24
output:
0 24 1536 1560 98304 98328 0 24 1536 1560 98304 98328 0 24 1536 1560 98304 98328 0 24 1536 1560 98304 98328 0 24 1536 1560 98304 98328 0 24 1536 1560 98304 98328 0 24 1536 1560 98304 98328 0 24 1536 1560 98304 98328 0 24 1536 1560 98304 98328 0 24 1536 1560 98304 98328
result:
ok Correct answer