QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#127079 | #6641. XOR Dice | shielder# | AC ✓ | 2ms | 3600kb | C++20 | 427b | 2023-07-19 12:51:47 | 2023-07-19 12:51:49 |
Judging History
answer
#include <bits/stdc++.h>
using namespace std;
int a[10];
int main(){
// int t;cin>>t;
// while(t--){
int n;cin>>n;
int d;cin>>d;
a[1]=0;
a[2]=d;
a[3]=d*(1<<6);
a[4]=d*(1<<12);
a[5]=d*((1<<6)|(1<<12));
a[6]=d*(1<<6)+d;
// a[3]=d*(1<<6);
for(int i=1;i<=n;i++){
for(int j=1;j<=6;j++) cout<<a[j]<<" ";
cout<<endl;
}
// }
return 0;
}
詳細信息
Test #1:
score: 100
Accepted
time: 1ms
memory: 3396kb
input:
3 2
output:
0 2 128 8192 8320 130 0 2 128 8192 8320 130 0 2 128 8192 8320 130
result:
ok Correct answer
Test #2:
score: 0
Accepted
time: 1ms
memory: 3600kb
input:
100 60
output:
0 60 3840 245760 249600 3900 0 60 3840 245760 249600 3900 0 60 3840 245760 249600 3900 0 60 3840 245760 249600 3900 0 60 3840 245760 249600 3900 0 60 3840 245760 249600 3900 0 60 3840 245760 249600 3900 0 60 3840 245760 249600 3900 0 60 3840 245760 249600 3900 0 60 3840 245760 249600 3900 ...
result:
ok Correct answer
Test #3:
score: 0
Accepted
time: 2ms
memory: 3400kb
input:
99 2
output:
0 2 128 8192 8320 130 0 2 128 8192 8320 130 0 2 128 8192 8320 130 0 2 128 8192 8320 130 0 2 128 8192 8320 130 0 2 128 8192 8320 130 0 2 128 8192 8320 130 0 2 128 8192 8320 130 0 2 128 8192 8320 130 0 2 128 8192 8320 130 0 2 128 8192 8320 130 0 2 128 8192 8320 130 0 2 128 8192 8320 130 0...
result:
ok Correct answer
Test #4:
score: 0
Accepted
time: 2ms
memory: 3380kb
input:
99 59
output:
0 59 3776 241664 245440 3835 0 59 3776 241664 245440 3835 0 59 3776 241664 245440 3835 0 59 3776 241664 245440 3835 0 59 3776 241664 245440 3835 0 59 3776 241664 245440 3835 0 59 3776 241664 245440 3835 0 59 3776 241664 245440 3835 0 59 3776 241664 245440 3835 0 59 3776 241664 245440 3835 ...
result:
ok Correct answer
Test #5:
score: 0
Accepted
time: 2ms
memory: 3440kb
input:
93 17
output:
0 17 1088 69632 70720 1105 0 17 1088 69632 70720 1105 0 17 1088 69632 70720 1105 0 17 1088 69632 70720 1105 0 17 1088 69632 70720 1105 0 17 1088 69632 70720 1105 0 17 1088 69632 70720 1105 0 17 1088 69632 70720 1105 0 17 1088 69632 70720 1105 0 17 1088 69632 70720 1105 0 17 1088 69632 7072...
result:
ok Correct answer
Test #6:
score: 0
Accepted
time: 2ms
memory: 3600kb
input:
100 49
output:
0 49 3136 200704 203840 3185 0 49 3136 200704 203840 3185 0 49 3136 200704 203840 3185 0 49 3136 200704 203840 3185 0 49 3136 200704 203840 3185 0 49 3136 200704 203840 3185 0 49 3136 200704 203840 3185 0 49 3136 200704 203840 3185 0 49 3136 200704 203840 3185 0 49 3136 200704 203840 3185 ...
result:
ok Correct answer
Test #7:
score: 0
Accepted
time: 2ms
memory: 3540kb
input:
100 5
output:
0 5 320 20480 20800 325 0 5 320 20480 20800 325 0 5 320 20480 20800 325 0 5 320 20480 20800 325 0 5 320 20480 20800 325 0 5 320 20480 20800 325 0 5 320 20480 20800 325 0 5 320 20480 20800 325 0 5 320 20480 20800 325 0 5 320 20480 20800 325 0 5 320 20480 20800 325 0 5 320 20480 20800 325 ...
result:
ok Correct answer
Test #8:
score: 0
Accepted
time: 1ms
memory: 3316kb
input:
1 57
output:
0 57 3648 233472 237120 3705
result:
ok Correct answer
Test #9:
score: 0
Accepted
time: 1ms
memory: 3392kb
input:
1 22
output:
0 22 1408 90112 91520 1430
result:
ok Correct answer
Test #10:
score: 0
Accepted
time: 1ms
memory: 3456kb
input:
1 60
output:
0 60 3840 245760 249600 3900
result:
ok Correct answer
Test #11:
score: 0
Accepted
time: 1ms
memory: 3452kb
input:
1 2
output:
0 2 128 8192 8320 130
result:
ok Correct answer
Test #12:
score: 0
Accepted
time: 1ms
memory: 3564kb
input:
10 24
output:
0 24 1536 98304 99840 1560 0 24 1536 98304 99840 1560 0 24 1536 98304 99840 1560 0 24 1536 98304 99840 1560 0 24 1536 98304 99840 1560 0 24 1536 98304 99840 1560 0 24 1536 98304 99840 1560 0 24 1536 98304 99840 1560 0 24 1536 98304 99840 1560 0 24 1536 98304 99840 1560
result:
ok Correct answer