Need help for LightOj 1308 — Ant Network

Правка en1, от darkprinx, 2016-12-27 20:40:37

Hello, I'm recently trying to understand this problem 1308 — Ant Network . I'm quite confused with a input that I saw in forum post that is

Input
1
5 5
0 1
1 2
2 3
3 4
4 0

Output
Case 1: 2 10

I have read the explanation about this case which was given by Leonardo Boshell. But still unable to understand how this output comes. Can anyone please explain me in details. It will be very helpful to me. Thanks in advance :)

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский darkprinx 2016-12-27 20:40:37 564 Initial revision (published)