QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#127053#6641. XOR DiceEthan_xu#AC ✓1ms3616kbC++20474b2023-07-19 12:40:352023-07-19 12:40:37

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-19 12:40:37]
  • 评测
  • 测评结果:AC
  • 用时:1ms
  • 内存:3616kb
  • [2023-07-19 12:40:35]
  • 提交

answer

#include<bits/stdc++.h>
using namespace std;
int main() {
    #ifdef _DEBUG
        freopen("data.txt", "r", stdin);
    #endif
    ios::sync_with_stdio(false);
    cin.tie(0);
    int n, d;
    cin >> n >> d;
    while(n -- ) {
        cout << d << " ";
        cout << (d << 6) << " ";
        cout << (d << 12) << " ";
        cout << ((d << 6) + d) << " ";
        cout << ((d << 12) + d) << " ";
        cout << ((d << 12) + (d << 6)) << "\n";
    }
}

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

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

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

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

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

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

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

input:

1 57

output:

57 3648 233472 3705 233529 237120

result:

ok Correct answer

Test #9:

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

input:

1 22

output:

22 1408 90112 1430 90134 91520

result:

ok Correct answer

Test #10:

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

input:

1 60

output:

60 3840 245760 3900 245820 249600

result:

ok Correct answer

Test #11:

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

input:

1 2

output:

2 128 8192 130 8194 8320

result:

ok Correct answer

Test #12:

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

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