QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#127570#6641. XOR DiceParadoxAC ✓2ms3596kbC++20427b2023-07-19 19:52:392023-07-19 19:52:39

Judging History

This is the latest submission verdict.

  • [2023-08-10 23:21:45]
  • System Update: QOJ starts to keep a history of the judgings of all the submissions.
  • [2023-07-19 19:52:39]
  • Judged
  • Verdict: AC
  • Time: 2ms
  • Memory: 3596kb
  • [2023-07-19 19:52:39]
  • Submitted

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;
}

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 0ms
memory: 3392kb

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: 2ms
memory: 3596kb

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

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

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

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

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

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

input:

1 57

output:

0 57 3648 233472 237120 3705 

result:

ok Correct answer

Test #9:

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

input:

1 22

output:

0 22 1408 90112 91520 1430 

result:

ok Correct answer

Test #10:

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

input:

1 60

output:

0 60 3840 245760 249600 3900 

result:

ok Correct answer

Test #11:

score: 0
Accepted
time: 0ms
memory: 3560kb

input:

1 2

output:

0 2 128 8192 8320 130 

result:

ok Correct answer

Test #12:

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

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