QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#127283 | #6641. XOR Dice | llb1238 | AC ✓ | 2ms | 3596kb | C++14 | 438b | 2023-07-19 15:14:15 | 2023-07-19 15:14:16 |
Judging History
answer
#include <iostream>
#include <cmath>
using namespace std;
int a[7];
int main(){
int n,d;
cin>>n>>d;
a[1] = 0;
a[2] = d * pow(2,6);
a[3] = d * pow(2,12);
a[4] = d * (pow(2,6) + 1);
a[5] = d * (pow(2,6) + pow(2,12));
a[6] = d * (pow(2,12) + 1);
for(int i=1;i<=n;i++){
for(int j= 1;j<=6;j++){
cout<<a[j]<<" ";
}
cout<<endl;
}
return 0;
}
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 100
Accepted
time: 0ms
memory: 3412kb
input:
3 2
output:
0 128 8192 130 8320 8194 0 128 8192 130 8320 8194 0 128 8192 130 8320 8194
result:
ok Correct answer
Test #2:
score: 0
Accepted
time: 0ms
memory: 3596kb
input:
100 60
output:
0 3840 245760 3900 249600 245820 0 3840 245760 3900 249600 245820 0 3840 245760 3900 249600 245820 0 3840 245760 3900 249600 245820 0 3840 245760 3900 249600 245820 0 3840 245760 3900 249600 245820 0 3840 245760 3900 249600 245820 0 3840 245760 3900 249600 245820 0 3840 245760 3900 249600 24...
result:
ok Correct answer
Test #3:
score: 0
Accepted
time: 0ms
memory: 3420kb
input:
99 2
output:
0 128 8192 130 8320 8194 0 128 8192 130 8320 8194 0 128 8192 130 8320 8194 0 128 8192 130 8320 8194 0 128 8192 130 8320 8194 0 128 8192 130 8320 8194 0 128 8192 130 8320 8194 0 128 8192 130 8320 8194 0 128 8192 130 8320 8194 0 128 8192 130 8320 8194 0 128 8192 130 8320 8194 0 128 8192 130...
result:
ok Correct answer
Test #4:
score: 0
Accepted
time: 2ms
memory: 3424kb
input:
99 59
output:
0 3776 241664 3835 245440 241723 0 3776 241664 3835 245440 241723 0 3776 241664 3835 245440 241723 0 3776 241664 3835 245440 241723 0 3776 241664 3835 245440 241723 0 3776 241664 3835 245440 241723 0 3776 241664 3835 245440 241723 0 3776 241664 3835 245440 241723 0 3776 241664 3835 245440 24...
result:
ok Correct answer
Test #5:
score: 0
Accepted
time: 2ms
memory: 3464kb
input:
93 17
output:
0 1088 69632 1105 70720 69649 0 1088 69632 1105 70720 69649 0 1088 69632 1105 70720 69649 0 1088 69632 1105 70720 69649 0 1088 69632 1105 70720 69649 0 1088 69632 1105 70720 69649 0 1088 69632 1105 70720 69649 0 1088 69632 1105 70720 69649 0 1088 69632 1105 70720 69649 0 1088 69632 1105 707...
result:
ok Correct answer
Test #6:
score: 0
Accepted
time: 0ms
memory: 3568kb
input:
100 49
output:
0 3136 200704 3185 203840 200753 0 3136 200704 3185 203840 200753 0 3136 200704 3185 203840 200753 0 3136 200704 3185 203840 200753 0 3136 200704 3185 203840 200753 0 3136 200704 3185 203840 200753 0 3136 200704 3185 203840 200753 0 3136 200704 3185 203840 200753 0 3136 200704 3185 203840 20...
result:
ok Correct answer
Test #7:
score: 0
Accepted
time: 2ms
memory: 3572kb
input:
100 5
output:
0 320 20480 325 20800 20485 0 320 20480 325 20800 20485 0 320 20480 325 20800 20485 0 320 20480 325 20800 20485 0 320 20480 325 20800 20485 0 320 20480 325 20800 20485 0 320 20480 325 20800 20485 0 320 20480 325 20800 20485 0 320 20480 325 20800 20485 0 320 20480 325 20800 20485 0 320 2048...
result:
ok Correct answer
Test #8:
score: 0
Accepted
time: 1ms
memory: 3392kb
input:
1 57
output:
0 3648 233472 3705 237120 233529
result:
ok Correct answer
Test #9:
score: 0
Accepted
time: 1ms
memory: 3420kb
input:
1 22
output:
0 1408 90112 1430 91520 90134
result:
ok Correct answer
Test #10:
score: 0
Accepted
time: 0ms
memory: 3532kb
input:
1 60
output:
0 3840 245760 3900 249600 245820
result:
ok Correct answer
Test #11:
score: 0
Accepted
time: 1ms
memory: 3540kb
input:
1 2
output:
0 128 8192 130 8320 8194
result:
ok Correct answer
Test #12:
score: 0
Accepted
time: 1ms
memory: 3400kb
input:
10 24
output:
0 1536 98304 1560 99840 98328 0 1536 98304 1560 99840 98328 0 1536 98304 1560 99840 98328 0 1536 98304 1560 99840 98328 0 1536 98304 1560 99840 98328 0 1536 98304 1560 99840 98328 0 1536 98304 1560 99840 98328 0 1536 98304 1560 99840 98328 0 1536 98304 1560 99840 98328 0 1536 98304 1560 998...
result:
ok Correct answer