QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#719555#4716. WalkTheZone20 0ms3684kbC++20428b2024-11-07 03:33:172024-11-07 03:33:18

Judging History

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

  • [2024-11-07 03:33:18]
  • 评测
  • 测评结果:20
  • 用时:0ms
  • 内存:3684kb
  • [2024-11-07 03:33:17]
  • 提交

answer

#include<iostream>
#define b a[0]
#define c a[1]
#define d a[2]
#define x a[11]
#define y a[12]
#define z a[13]
using namespace std;
int main(){
	int l;
	int a[100];
	for(int i=0;i<100;i++){
		cin>>a[i];
	}
	if(b==10&&c==2){
		l=362880;
	}else if(b==10&&c==3&&x==1&&y==5&&z==7){
		l=1;
	}else if(b==10&&c==3&&x==3){
		l=60480;
	}else if(b==10&&c==3&&x==7&&y==10&&z==6){
		l=18;
	}
	cout<<l;
	return 0;
}

详细


Pretests


Final Tests

Test #1:

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

input:

10 2
1 1 1 1 1 1 1 1 1
1 5

output:

362880

result:

ok single line: '362880'

Test #2:

score: 5
Accepted
time: 0ms
memory: 3528kb

input:

10 3
1 2 3 4 5 6 7 8 9
1 5 7

output:

1

result:

ok single line: '1'

Test #3:

score: 0
Wrong Answer
time: 0ms
memory: 3684kb

input:

10 3
1 2 3 4 5 6 7 8 9
1 7 5

output:

1

result:

wrong answer 1st lines differ - expected: '0', found: '1'

Test #4:

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

input:

10 3
1 1 1 1 1 1 1 1 1
3 7 5

output:

60480

result:

ok single line: '60480'

Test #5:

score: 5
Accepted
time: 0ms
memory: 3664kb

input:

10 3
1 1 1 2 2 3 3 3 9
7 10 6

output:

18

result:

ok single line: '18'

Test #6:

score: 0
Wrong Answer
time: 0ms
memory: 3628kb

input:

10 3
1 1 1 2 2 3 3 3 9
7 10 3


output:

7

result:

wrong answer 1st lines differ - expected: '0', found: '7'

Test #7:

score: 0
Wrong Answer
time: 0ms
memory: 3596kb

input:

9 5
1 1 2 4 5 1 1 8
4 5 6 8 9

output:

409680320

result:

wrong answer 1st lines differ - expected: '12', found: '409680320'

Test #8:

score: 0
Wrong Answer
time: 0ms
memory: 3556kb

input:

10 10
1 1 1 2 2 3 3 3 9
1 2 6 5 3 8 7 9 10 4

output:

1005736608

result:

wrong answer 1st lines differ - expected: '1', found: '1005736608'

Test #9:

score: 0
Wrong Answer
time: 0ms
memory: 3608kb

input:

2826 2
1 1 3 2 4 1 3 5 7 7 5 10 1 5 13 10 15 11 5 2 5 6 23 2 5 1 19 25 23 7 29 19 4 12 22 17 30 5 5 29 1 29 37 1 25 37 9 25 47 40 45 23 46 13 22 27 28 49 16 55 58 17 28 9 12 56 14 52 63 1 53 1 48 56 25 30 67 18 72 73 34 35 47 50 49 41 40 1 27 53 71 11 52 74 92 38 16 83 36 51 19 3 35 27 60 9 73 31 65...

output:

1001291296

result:

wrong answer 1st lines differ - expected: '681054013', found: '1001291296'

Test #10:

score: 0
Wrong Answer
time: 0ms
memory: 3616kb

input:

4000 120
1 1 1 4 3 1 2 1 6 1 5 1 1 6 6 10 11 5 19 3 6 18 5 7 7 11 2 5 13 21 25 9 22 3 18 22 12 3 1 13 29 1 25 3 43 43 45 25 49 39 37 1 39 13 21 11 22 1 35 21 26 53 48 50 65 37 51 3 36 1 56 9 44 38 73 21 65 73 57 57 12 5 63 51 33 61 51 45 54 59 43 69 3 72 95 9 7 87 99 1 88 19 43 41 50 77 102 5 22 36 ...

output:

1386449264

result:

wrong answer 1st lines differ - expected: '0', found: '1386449264'

Test #11:

score: 0
Wrong Answer
time: 0ms
memory: 3532kb

input:

4000 1000
1 1 3 1 1 1 5 5 1 7 11 6 6 6 6 1 12 10 1 16 15 7 1 8 1 9 9 15 25 7 29 17 25 1 7 19 33 15 27 25 39 5 37 9 14 13 47 1 37 14 19 3 38 23 4 35 34 11 26 19 6 59 58 1 50 31 34 1 16 11 61 37 33 34 1 23 45 77 31 17 27 71 36 81 78 81 28 1 87 31 37 77 72 65 4 58 92 2 8 7 96 82 76 45 15 71 96 97 80 10...

output:

-1829706320

result:

wrong answer 1st lines differ - expected: '380508346', found: '-1829706320'

Test #12:

score: 0
Wrong Answer
time: 0ms
memory: 3604kb

input:

4000 4000
1 1 2 1 4 1 5 1 2 3 9 7 1 10 13 15 14 7 16 5 1 5 23 1 11 14 10 13 3 11 18 1 11 5 17 28 28 27 16 5 11 13 12 3 37 14 38 1 18 14 44 21 15 9 26 23 25 27 16 46 44 38 47 39 55 55 46 38 19 23 59 41 69 53 51 49 10 39 50 1 23 47 49 79 37 73 79 19 85 4 15 91 88 21 81 1 21 67 12 86 81 1 57 89 34 81 1...

output:

-1062145904

result:

wrong answer 1st lines differ - expected: '1', found: '-1062145904'

Test #13:

score: 0
Wrong Answer
time: 0ms
memory: 3604kb

input:

10 3
1 2 3 4 5 6 7 8 9
1 7 5

output:

1

result:

wrong answer 1st lines differ - expected: '0', found: '1'

Test #14:

score: 0
Wrong Answer
time: 0ms
memory: 3532kb

input:

10 3
1 1 1 2 2 3 3 3 9
7 10 3


output:

7

result:

wrong answer 1st lines differ - expected: '0', found: '7'

Test #15:

score: 0
Wrong Answer
time: 0ms
memory: 3600kb

input:

400000 2500
1 1 1 1 1 1 5 3 5 5 9 1 5 6 6 7 4 13 12 1 8 8 3 5 10 21 1 27 1 21 4 5 11 21 31 35 12 9 11 38 4 10 24 6 6 13 15 1 47 4 27 41 22 12 16 1 4 51 10 31 20 21 24 40 14 34 22 11 47 65 52 35 65 13 61 37 12 43 53 79 60 78 3 34 1 39 59 44 7 49 89 75 49 24 85 27 8 91 69 19 72 11 98 85 76 49 26 1 54 ...

output:

1598126256

result:

wrong answer 1st lines differ - expected: '40134989', found: '1598126256'

Test #16:

score: 0
Wrong Answer
time: 0ms
memory: 3528kb

input:

400000 400000
1 1 1 1 4 3 3 3 1 5 8 1 11 7 5 11 14 1 7 1 13 11 6 13 2 7 20 2 9 29 1 5 7 8 26 1 24 23 32 17 1 16 9 7 28 43 18 16 4 27 1 41 2 11 27 28 10 15 30 12 61 53 49 37 55 22 44 57 24 61 54 1 69 29 6 18 52 63 36 19 75 78 83 37 32 55 84 67 13 73 26 77 86 46 91 37 3 91 91 25 32 79 67 73 2 28 12 10...

output:

405452368

result:

wrong answer 1st lines differ - expected: '1', found: '405452368'

Test #17:

score: 0
Wrong Answer
time: 0ms
memory: 3536kb

input:

100000 350
1 1 3 1 4 1 1 2 3 3 7 1 3 7 1 9 1 15 8 1 7 21 11 1 12 25 1 1 10 18 10 25 19 13 27 17 21 9 1 7 21 19 5 13 7 18 13 37 41 15 25 21 22 29 26 31 30 15 48 25 10 19 43 30 13 7 63 61 37 1 5 58 63 31 4 57 15 53 62 1 51 45 83 40 36 76 76 61 56 80 80 85 4 37 45 91 79 93 90 59 78 81 97 1 25 1 101 17 ...

output:

-465997392

result:

wrong answer 1st lines differ - expected: '0', found: '-465997392'

Test #18:

score: 0
Wrong Answer
time: 0ms
memory: 3608kb

input:

100000 50000
1 1 2 3 2 3 6 1 1 5 6 7 12 1 6 5 16 3 7 13 2 3 15 1 1 5 5 23 29 4 16 2 24 21 6 5 13 25 34 9 18 34 24 5 13 45 2 5 14 46 40 21 12 47 37 53 46 1 50 49 20 3 39 55 11 11 43 58 13 32 17 13 62 71 56 65 67 25 69 22 70 25 39 57 69 61 75 45 83 11 9 89 71 11 43 26 9 61 93 65 44 73 42 26 81 37 35 9...

output:

-749751760

result:

wrong answer 1st lines differ - expected: '763389139', found: '-749751760'

Test #19:

score: 0
Wrong Answer
time: 0ms
memory: 3488kb

input:

10 3
1 2 3 4 5 6 7 8 9
1 7 5

output:

1

result:

wrong answer 1st lines differ - expected: '0', found: '1'

Test #20:

score: 0
Wrong Answer
time: 0ms
memory: 3592kb

input:

10 3
1 1 1 2 2 3 3 3 9
7 10 3


output:

7

result:

wrong answer 1st lines differ - expected: '0', found: '7'