QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#120086#6641. XOR Dicezjy0001AC ✓1ms3864kbC++17647b2023-07-06 13:22:382023-07-06 13:22:42

Judging History

你现在查看的是最新测评结果

  • [2023-08-10 23:21:45]
  • System Update: QOJ starts to keep a history of the judgings of all the submissions.
  • [2023-07-06 13:22:42]
  • 评测
  • 测评结果:AC
  • 用时:1ms
  • 内存:3864kb
  • [2023-07-06 13:22:38]
  • 提交

answer

#include<bits/stdc++.h>
#define LL long long
#define LLL __int128
#define ldb long double
using namespace std;
typedef pair<int,int> PII;
#define gc() getchar()
#define pc(x) putchar(x)
template<class T>inline T read(){
    T x=0;char ch;bool f=1;
    while(!isdigit(ch=gc()))if(ch=='-')f^=1;
    do x=(x<<1)+(x<<3)+(ch^48);while(isdigit(ch=gc()));
    return f?x:-x;
}
#define read() read<int>()
int n,d;
signed main(){
    n=read(),d=read();
    int A=d,B=d<<6,C=d<<12;
    for(int i=1;i<=n;++i)
        printf("%d %d %d %d %d %d\n",A,B,C,A|B,A|C,B|C);
    cerr<<clock()*1.0/CLOCKS_PER_SEC<<endl;
    return 0;
}
/*

*/

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 1ms
memory: 3684kb

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: 3688kb

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: 3724kb

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: 3684kb

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: 3684kb

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: 1ms
memory: 3740kb

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: 3744kb

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: 0ms
memory: 3864kb

input:

1 57

output:

57 3648 233472 3705 233529 237120

result:

ok Correct answer

Test #9:

score: 0
Accepted
time: 1ms
memory: 3688kb

input:

1 22

output:

22 1408 90112 1430 90134 91520

result:

ok Correct answer

Test #10:

score: 0
Accepted
time: 1ms
memory: 3720kb

input:

1 60

output:

60 3840 245760 3900 245820 249600

result:

ok Correct answer

Test #11:

score: 0
Accepted
time: 1ms
memory: 3792kb

input:

1 2

output:

2 128 8192 130 8194 8320

result:

ok Correct answer

Test #12:

score: 0
Accepted
time: 1ms
memory: 3700kb

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