QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#587193#3983. King's Colorsucup-team4744#WA 187ms3736kbC++201.2kb2024-09-24 18:13:152024-09-24 18:13:16

详细

Test #1:

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

input:

4 3
0
1
1

output:

18

result:

ok single line: '18'

Test #2:

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

input:

6 4
0
1
1
3
4

output:

600

result:

ok single line: '600'

Test #3:

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

input:

2 2
0

output:

2

result:

ok single line: '2'

Test #4:

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

input:

5 5
0
0
0
2

output:

120

result:

ok single line: '120'

Test #5:

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

input:

5 2
0
0
1
3

output:

2

result:

ok single line: '2'

Test #6:

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

input:

5 3
0
1
0
3

output:

42

result:

ok single line: '42'

Test #7:

score: -100
Wrong Answer
time: 187ms
memory: 3736kb

input:

2500 2500
0
1
2
0
3
1
5
0
2
1
5
7
3
6
8
3
7
0
6
13
8
5
12
5
24
25
2
4
19
19
14
8
8
0
0
13
13
10
10
18
20
12
34
43
40
13
11
44
12
24
19
1
23
26
10
9
16
4
21
19
52
38
37
0
43
8
39
45
39
61
40
23
61
60
22
7
32
2
45
51
2
70
53
46
48
74
1
57
5
23
79
25
15
31
59
44
65
45
67
32
99
59
13
75
95
99
102
47
37
...

output:

992270167

result:

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