QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#183221#7249. Jimi HendrixcnyzWA 4ms17900kbC++142.0kb2023-09-19 11:44:242023-09-19 11:44:24

詳細信息

Test #1:

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

input:

9 3
1 2 a
2 3 b
2 4 a
4 5 b
4 6 c
6 7 d
6 8 a
8 9 b
acb

output:

8 5

result:

ok Both jury and contestant have lovely and correct paths :)

Test #2:

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

input:

2 1
1 2 b
b

output:

2 1

result:

ok Both jury and contestant have lovely and correct paths :)

Test #3:

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

input:

2 1
1 2 k
p

output:

-1 -1

result:

ok no path at all :)

Test #4:

score: 0
Accepted
time: 4ms
memory: 16432kb

input:

10 2
1 4 a
7 5 c
1 9 a
10 1 c
7 10 c
8 2 c
7 8 b
5 3 c
8 6 b
cb

output:

2 6

result:

ok Both jury and contestant have lovely and correct paths :)

Test #5:

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

input:

10 5
6 1 c
7 6 a
7 8 c
6 5 c
7 3 c
6 9 c
8 4 c
7 2 b
5 10 b
cbaca

output:

-1 -1

result:

ok no path at all :)

Test #6:

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

input:

10 3
3 10 c
1 9 b
4 8 a
10 4 b
2 3 c
7 6 a
8 5 b
5 1 a
6 2 c
bab

output:

10 5

result:

ok Both jury and contestant have lovely and correct paths :)

Test #7:

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

input:

10 5
9 1 c
5 4 c
1 7 a
3 9 c
8 5 a
2 6 b
4 10 a
7 8 a
6 3 a
cabab

output:

-1 -1

result:

ok no path at all :)

Test #8:

score: 0
Accepted
time: 3ms
memory: 17900kb

input:

10 2
9 10 c
9 8 c
9 3 c
9 4 c
9 1 a
9 2 a
9 5 c
9 7 b
9 6 b
ac

output:

2 10

result:

ok Both jury and contestant have lovely and correct paths :)

Test #9:

score: -100
Wrong Answer
time: 0ms
memory: 16980kb

input:

10 2
10 3 c
10 4 b
10 8 b
10 1 a
10 7 c
10 5 b
10 2 c
10 9 c
10 6 b
ac

output:

1 10

result:

wrong answer the path is incorrect, too bad :(