QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#135004 | #6641. XOR Dice | silly_1_2_3# | AC ✓ | 1ms | 3620kb | C++14 | 567b | 2023-08-05 10:35:33 | 2023-08-05 10:35:34 |
Judging History
answer
#include<bits/stdc++.h>
#define FOR(i,a,b) for(int i=(a),i##z=(b);i<=i##z;i++)
#define ROF(i,a,b) for(int i=(a),i##z=(b);i>=i##z;i--)
#define REP(i,u) for(int i=hd[u],v;v=to[i],i;i=nxt[i])
#define temT template<typename T>
#define temT12 template<typename T1,typename T2>
using namespace std;
typedef pair<int,int> pii;
typedef long long ll;
typedef long double ld;
int n,d; int f[6];
int main(){
cin>>n>>d;
int x=d,y=d*64,z=d*64*64;
f[0]=x,f[1]=y,f[2]=z,f[3]=x+y,f[4]=x+z,f[5]=y+z;
FOR(i,1,n) FOR(j,0,5) cout<<f[j]<<" \n"[j==5];
return 0;
}
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 100
Accepted
time: 1ms
memory: 3424kb
input:
3 2
output:
2 128 8192 130 8194 8320 2 128 8192 130 8194 8320 2 128 8192 130 8194 8320
result:
ok Correct answer
Test #2:
score: 0
Accepted
time: 1ms
memory: 3396kb
input:
100 60
output:
60 3840 245760 3900 245820 249600 60 3840 245760 3900 245820 249600 60 3840 245760 3900 245820 249600 60 3840 245760 3900 245820 249600 60 3840 245760 3900 245820 249600 60 3840 245760 3900 245820 249600 60 3840 245760 3900 245820 249600 60 3840 245760 3900 245820 249600 60 3840 245760 3900 245820 2...
result:
ok Correct answer
Test #3:
score: 0
Accepted
time: 1ms
memory: 3564kb
input:
99 2
output:
2 128 8192 130 8194 8320 2 128 8192 130 8194 8320 2 128 8192 130 8194 8320 2 128 8192 130 8194 8320 2 128 8192 130 8194 8320 2 128 8192 130 8194 8320 2 128 8192 130 8194 8320 2 128 8192 130 8194 8320 2 128 8192 130 8194 8320 2 128 8192 130 8194 8320 2 128 8192 130 8194 8320 2 128 8192 130 8194 8320 ...
result:
ok Correct answer
Test #4:
score: 0
Accepted
time: 1ms
memory: 3456kb
input:
99 59
output:
59 3776 241664 3835 241723 245440 59 3776 241664 3835 241723 245440 59 3776 241664 3835 241723 245440 59 3776 241664 3835 241723 245440 59 3776 241664 3835 241723 245440 59 3776 241664 3835 241723 245440 59 3776 241664 3835 241723 245440 59 3776 241664 3835 241723 245440 59 3776 241664 3835 241723 2...
result:
ok Correct answer
Test #5:
score: 0
Accepted
time: 1ms
memory: 3448kb
input:
93 17
output:
17 1088 69632 1105 69649 70720 17 1088 69632 1105 69649 70720 17 1088 69632 1105 69649 70720 17 1088 69632 1105 69649 70720 17 1088 69632 1105 69649 70720 17 1088 69632 1105 69649 70720 17 1088 69632 1105 69649 70720 17 1088 69632 1105 69649 70720 17 1088 69632 1105 69649 70720 17 1088 69632 1105 69...
result:
ok Correct answer
Test #6:
score: 0
Accepted
time: 0ms
memory: 3616kb
input:
100 49
output:
49 3136 200704 3185 200753 203840 49 3136 200704 3185 200753 203840 49 3136 200704 3185 200753 203840 49 3136 200704 3185 200753 203840 49 3136 200704 3185 200753 203840 49 3136 200704 3185 200753 203840 49 3136 200704 3185 200753 203840 49 3136 200704 3185 200753 203840 49 3136 200704 3185 200753 2...
result:
ok Correct answer
Test #7:
score: 0
Accepted
time: 1ms
memory: 3400kb
input:
100 5
output:
5 320 20480 325 20485 20800 5 320 20480 325 20485 20800 5 320 20480 325 20485 20800 5 320 20480 325 20485 20800 5 320 20480 325 20485 20800 5 320 20480 325 20485 20800 5 320 20480 325 20485 20800 5 320 20480 325 20485 20800 5 320 20480 325 20485 20800 5 320 20480 325 20485 20800 5 320 20480 325 2048...
result:
ok Correct answer
Test #8:
score: 0
Accepted
time: 1ms
memory: 3448kb
input:
1 57
output:
57 3648 233472 3705 233529 237120
result:
ok Correct answer
Test #9:
score: 0
Accepted
time: 1ms
memory: 3620kb
input:
1 22
output:
22 1408 90112 1430 90134 91520
result:
ok Correct answer
Test #10:
score: 0
Accepted
time: 1ms
memory: 3576kb
input:
1 60
output:
60 3840 245760 3900 245820 249600
result:
ok Correct answer
Test #11:
score: 0
Accepted
time: 1ms
memory: 3444kb
input:
1 2
output:
2 128 8192 130 8194 8320
result:
ok Correct answer
Test #12:
score: 0
Accepted
time: 0ms
memory: 3620kb
input:
10 24
output:
24 1536 98304 1560 98328 99840 24 1536 98304 1560 98328 99840 24 1536 98304 1560 98328 99840 24 1536 98304 1560 98328 99840 24 1536 98304 1560 98328 99840 24 1536 98304 1560 98328 99840 24 1536 98304 1560 98328 99840 24 1536 98304 1560 98328 99840 24 1536 98304 1560 98328 99840 24 1536 98304 1560 98...
result:
ok Correct answer