QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#127109 | #6641. XOR Dice | yy_zq# | AC ✓ | 2ms | 3612kb | C++14 | 342b | 2023-07-19 13:04:05 | 2023-07-19 13:04:07 |
Judging History
answer
#include<bits/stdc++.h>
using namespace std;
#define FOR(i,j,k) for(int i=j;i<=k;++i)
signed main(){
ios::sync_with_stdio(false);
cin.tie(0);
cout.tie(0);
int n,d;
cin>>n>>d;
FOR(i,1,n){
cout<<0<<' '<<d<<' '<<d*64<<' '<<d*64*64<<' '<<d*(1+64)<<' '<<d*(64+64*64)<<endl;
}
return 0;
}
/*
2
5 4
1 2
1 3
1 4
1 5
*/
詳細信息
Test #1:
score: 100
Accepted
time: 0ms
memory: 3396kb
input:
3 2
output:
0 2 128 8192 130 8320 0 2 128 8192 130 8320 0 2 128 8192 130 8320
result:
ok Correct answer
Test #2:
score: 0
Accepted
time: 1ms
memory: 3460kb
input:
100 60
output:
0 60 3840 245760 3900 249600 0 60 3840 245760 3900 249600 0 60 3840 245760 3900 249600 0 60 3840 245760 3900 249600 0 60 3840 245760 3900 249600 0 60 3840 245760 3900 249600 0 60 3840 245760 3900 249600 0 60 3840 245760 3900 249600 0 60 3840 245760 3900 249600 0 60 3840 245760 3900 249600 0 60 3840 ...
result:
ok Correct answer
Test #3:
score: 0
Accepted
time: 0ms
memory: 3608kb
input:
99 2
output:
0 2 128 8192 130 8320 0 2 128 8192 130 8320 0 2 128 8192 130 8320 0 2 128 8192 130 8320 0 2 128 8192 130 8320 0 2 128 8192 130 8320 0 2 128 8192 130 8320 0 2 128 8192 130 8320 0 2 128 8192 130 8320 0 2 128 8192 130 8320 0 2 128 8192 130 8320 0 2 128 8192 130 8320 0 2 128 8192 130 8320 0 2 128 8192 1...
result:
ok Correct answer
Test #4:
score: 0
Accepted
time: 0ms
memory: 3476kb
input:
99 59
output:
0 59 3776 241664 3835 245440 0 59 3776 241664 3835 245440 0 59 3776 241664 3835 245440 0 59 3776 241664 3835 245440 0 59 3776 241664 3835 245440 0 59 3776 241664 3835 245440 0 59 3776 241664 3835 245440 0 59 3776 241664 3835 245440 0 59 3776 241664 3835 245440 0 59 3776 241664 3835 245440 0 59 3776 ...
result:
ok Correct answer
Test #5:
score: 0
Accepted
time: 2ms
memory: 3468kb
input:
93 17
output:
0 17 1088 69632 1105 70720 0 17 1088 69632 1105 70720 0 17 1088 69632 1105 70720 0 17 1088 69632 1105 70720 0 17 1088 69632 1105 70720 0 17 1088 69632 1105 70720 0 17 1088 69632 1105 70720 0 17 1088 69632 1105 70720 0 17 1088 69632 1105 70720 0 17 1088 69632 1105 70720 0 17 1088 69632 1105 70720 0 1...
result:
ok Correct answer
Test #6:
score: 0
Accepted
time: 2ms
memory: 3604kb
input:
100 49
output:
0 49 3136 200704 3185 203840 0 49 3136 200704 3185 203840 0 49 3136 200704 3185 203840 0 49 3136 200704 3185 203840 0 49 3136 200704 3185 203840 0 49 3136 200704 3185 203840 0 49 3136 200704 3185 203840 0 49 3136 200704 3185 203840 0 49 3136 200704 3185 203840 0 49 3136 200704 3185 203840 0 49 3136 ...
result:
ok Correct answer
Test #7:
score: 0
Accepted
time: 2ms
memory: 3424kb
input:
100 5
output:
0 5 320 20480 325 20800 0 5 320 20480 325 20800 0 5 320 20480 325 20800 0 5 320 20480 325 20800 0 5 320 20480 325 20800 0 5 320 20480 325 20800 0 5 320 20480 325 20800 0 5 320 20480 325 20800 0 5 320 20480 325 20800 0 5 320 20480 325 20800 0 5 320 20480 325 20800 0 5 320 20480 325 20800 0 5 320 2048...
result:
ok Correct answer
Test #8:
score: 0
Accepted
time: 1ms
memory: 3404kb
input:
1 57
output:
0 57 3648 233472 3705 237120
result:
ok Correct answer
Test #9:
score: 0
Accepted
time: 1ms
memory: 3612kb
input:
1 22
output:
0 22 1408 90112 1430 91520
result:
ok Correct answer
Test #10:
score: 0
Accepted
time: 1ms
memory: 3424kb
input:
1 60
output:
0 60 3840 245760 3900 249600
result:
ok Correct answer
Test #11:
score: 0
Accepted
time: 0ms
memory: 3432kb
input:
1 2
output:
0 2 128 8192 130 8320
result:
ok Correct answer
Test #12:
score: 0
Accepted
time: 1ms
memory: 3608kb
input:
10 24
output:
0 24 1536 98304 1560 99840 0 24 1536 98304 1560 99840 0 24 1536 98304 1560 99840 0 24 1536 98304 1560 99840 0 24 1536 98304 1560 99840 0 24 1536 98304 1560 99840 0 24 1536 98304 1560 99840 0 24 1536 98304 1560 99840 0 24 1536 98304 1560 99840 0 24 1536 98304 1560 99840
result:
ok Correct answer