QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#627784#8029. Traveling Merchantucup-team4946#WA 22ms15800kbC++172.0kb2024-10-10 17:07:512024-10-10 17:07:52

详细

Test #1:

score: 100
Accepted
time: 3ms
memory: 13504kb

input:

2
4 4
LHLH
0 1
1 2
1 3
2 3
3 3
LHH
0 1
0 2
1 2

output:

yes
no

result:

ok 2 lines

Test #2:

score: 0
Accepted
time: 19ms
memory: 15364kb

input:

12385
9 29
LHLLHLHLH
0 7
1 4
4 6
2 0
4 2
6 5
8 4
7 1
2 6
7 3
7 2
8 7
1 3
5 3
0 8
4 0
0 5
8 1
8 6
3 2
0 1
1 2
6 3
2 5
6 0
3 0
5 4
4 3
7 5
7 15
LLLLLHL
5 2
6 3
3 0
0 6
4 5
1 4
6 1
0 5
3 4
5 6
1 0
2 6
0 2
4 2
0 4
6 6
LHHHHH
5 0
0 4
2 5
1 4
1 3
3 4
9 8
LHLHLLHLL
5 7
5 4
7 4
7 8
1 5
0 1
1 8
1 2
5 4
LHHHH...

output:

yes
yes
no
no
no
yes
yes
yes
no
yes
yes
no
yes
yes
yes
yes
yes
yes
yes
yes
no
no
no
yes
no
no
yes
yes
no
no
yes
no
no
yes
yes
yes
yes
yes
yes
no
no
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
no
yes
yes
yes
yes
yes
yes
no
yes
yes
no
yes
yes
yes
yes
yes
yes
no
no
no
yes
yes
yes
no
yes
yes...

result:

ok 12385 lines

Test #3:

score: -100
Wrong Answer
time: 22ms
memory: 15800kb

input:

4627
11 51
LLHLLLHHLHL
0 2
0 9
10 0
4 8
3 5
4 7
6 1
1 2
2 6
5 8
5 0
7 3
4 0
2 9
2 3
6 0
8 1
5 2
6 9
0 1
10 1
1 7
5 6
1 5
1 9
4 3
9 3
3 10
6 3
10 6
0 8
7 2
8 6
4 10
8 3
7 9
10 2
8 10
8 2
1 3
5 7
3 0
7 6
0 7
10 9
9 5
1 4
5 4
10 5
9 4
7 8
15 97
LLLLLHHHHLHHLHH
8 6
13 7
10 1
7 1
4 3
8 12
14 2
14 8
14 12...

output:

yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
no
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
no
yes
no
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
no
yes
yes
yes
yes
yes
yes
no
yes
yes
yes
yes
yes
yes
yes
yes
yes
y...

result:

wrong answer 4516th lines differ - expected: 'yes', found: 'no'