QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#127283#6641. XOR Dicellb1238AC ✓2ms3596kbC++14438b2023-07-19 15:14:152023-07-19 15:14:16

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 15:14:16]
  • 评测
  • 测评结果:AC
  • 用时:2ms
  • 内存:3596kb
  • [2023-07-19 15:14:15]
  • 提交

answer

#include <iostream>
#include <cmath>
using namespace std;

int a[7];

int main(){
    int n,d;
    cin>>n>>d;
    a[1] = 0;
    a[2] = d * pow(2,6);
    a[3] = d * pow(2,12);
    a[4] = d * (pow(2,6) + 1);
    a[5] = d * (pow(2,6) + pow(2,12));
    a[6] = d * (pow(2,12) + 1);
    for(int i=1;i<=n;i++){
        for(int j= 1;j<=6;j++){
            cout<<a[j]<<" ";
        }
        cout<<endl;
    }
    return 0;
}

詳細信息

Test #1:

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

input:

3 2

output:

0 128 8192 130 8320 8194 
0 128 8192 130 8320 8194 
0 128 8192 130 8320 8194 

result:

ok Correct answer

Test #2:

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

input:

100 60

output:

0 3840 245760 3900 249600 245820 
0 3840 245760 3900 249600 245820 
0 3840 245760 3900 249600 245820 
0 3840 245760 3900 249600 245820 
0 3840 245760 3900 249600 245820 
0 3840 245760 3900 249600 245820 
0 3840 245760 3900 249600 245820 
0 3840 245760 3900 249600 245820 
0 3840 245760 3900 249600 24...

result:

ok Correct answer

Test #3:

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

input:

99 2

output:

0 128 8192 130 8320 8194 
0 128 8192 130 8320 8194 
0 128 8192 130 8320 8194 
0 128 8192 130 8320 8194 
0 128 8192 130 8320 8194 
0 128 8192 130 8320 8194 
0 128 8192 130 8320 8194 
0 128 8192 130 8320 8194 
0 128 8192 130 8320 8194 
0 128 8192 130 8320 8194 
0 128 8192 130 8320 8194 
0 128 8192 130...

result:

ok Correct answer

Test #4:

score: 0
Accepted
time: 2ms
memory: 3424kb

input:

99 59

output:

0 3776 241664 3835 245440 241723 
0 3776 241664 3835 245440 241723 
0 3776 241664 3835 245440 241723 
0 3776 241664 3835 245440 241723 
0 3776 241664 3835 245440 241723 
0 3776 241664 3835 245440 241723 
0 3776 241664 3835 245440 241723 
0 3776 241664 3835 245440 241723 
0 3776 241664 3835 245440 24...

result:

ok Correct answer

Test #5:

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

input:

93 17

output:

0 1088 69632 1105 70720 69649 
0 1088 69632 1105 70720 69649 
0 1088 69632 1105 70720 69649 
0 1088 69632 1105 70720 69649 
0 1088 69632 1105 70720 69649 
0 1088 69632 1105 70720 69649 
0 1088 69632 1105 70720 69649 
0 1088 69632 1105 70720 69649 
0 1088 69632 1105 70720 69649 
0 1088 69632 1105 707...

result:

ok Correct answer

Test #6:

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

input:

100 49

output:

0 3136 200704 3185 203840 200753 
0 3136 200704 3185 203840 200753 
0 3136 200704 3185 203840 200753 
0 3136 200704 3185 203840 200753 
0 3136 200704 3185 203840 200753 
0 3136 200704 3185 203840 200753 
0 3136 200704 3185 203840 200753 
0 3136 200704 3185 203840 200753 
0 3136 200704 3185 203840 20...

result:

ok Correct answer

Test #7:

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

input:

100 5

output:

0 320 20480 325 20800 20485 
0 320 20480 325 20800 20485 
0 320 20480 325 20800 20485 
0 320 20480 325 20800 20485 
0 320 20480 325 20800 20485 
0 320 20480 325 20800 20485 
0 320 20480 325 20800 20485 
0 320 20480 325 20800 20485 
0 320 20480 325 20800 20485 
0 320 20480 325 20800 20485 
0 320 2048...

result:

ok Correct answer

Test #8:

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

input:

1 57

output:

0 3648 233472 3705 237120 233529 

result:

ok Correct answer

Test #9:

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

input:

1 22

output:

0 1408 90112 1430 91520 90134 

result:

ok Correct answer

Test #10:

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

input:

1 60

output:

0 3840 245760 3900 249600 245820 

result:

ok Correct answer

Test #11:

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

input:

1 2

output:

0 128 8192 130 8320 8194 

result:

ok Correct answer

Test #12:

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

input:

10 24

output:

0 1536 98304 1560 99840 98328 
0 1536 98304 1560 99840 98328 
0 1536 98304 1560 99840 98328 
0 1536 98304 1560 99840 98328 
0 1536 98304 1560 99840 98328 
0 1536 98304 1560 99840 98328 
0 1536 98304 1560 99840 98328 
0 1536 98304 1560 99840 98328 
0 1536 98304 1560 99840 98328 
0 1536 98304 1560 998...

result:

ok Correct answer