ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1905. Travel in Time

WA4 or WA6
Posted by andreyDagger`~ 13 Nov 2022 02:57
1 12
1 1 10 8
1 1 8 10
1 1 9 3
1 1 7 4
1 1 2 4
1 1 5 4
1 1 2 5
1 1 9 9
1 1 3 5
1 1 9 2
1 1 9 5
1 1 5 9
1 1 6 4

Ans:
1
4

Also, check that you print "Impossilbe", when it's impossible to achieve the finish vertex