341 - Non-Stop Travel

All about problems in Volume 3. If there is a thread about your problem, please use it. If not, create one with its number in the subject.

Moderator: Board moderators

Tanmoy Tapos Datta
New poster
Posts: 5
Joined: Mon Jul 14, 2014 10:04 pm

Re: 341 - Non-Stop Travel

Post by Tanmoy Tapos Datta »

lighted wrote:Always copy/paste output format from sample or problem description. :)

Sample Output

Code: Select all

Case 1: Path = 2 1 4; 8 second delay
Your Output

Code: Select all

Case 1: Path = 2 1 4 ; 8 second delay
Don't forget to remove your code after getting accepted. 8)
Thank u sir for your help but my compiler output is like this in this code.. :roll:

Code: Select all

Case 1: Path = 2 1 4; 8 second delay
brianfry713
Guru
Posts: 5947
Joined: Thu Sep 01, 2011 9:09 am
Location: San Jose, CA, USA

Re: 341 - Non-Stop Travel

Post by brianfry713 »

remove:
pf("\b");
Check input and AC output for thousands of problems on uDebug!
Tanmoy Tapos Datta
New poster
Posts: 5
Joined: Mon Jul 14, 2014 10:04 pm

Re: 341 - Non-Stop Travel

Post by Tanmoy Tapos Datta »

brianfry713 wrote:remove:
pf("\b");
Thank u sir... Got AC :D
moxlotus
New poster
Posts: 31
Joined: Sat Sep 17, 2011 6:47 am

Re: 341 - Non-Stop Travel

Post by moxlotus »

AC
battirunner
New poster
Posts: 14
Joined: Fri Aug 15, 2014 3:48 pm

Re: 341 - Non-Stop Travel

Post by battirunner »

Got AC....
Last edited by battirunner on Fri Dec 26, 2014 8:05 pm, edited 1 time in total.
brianfry713
Guru
Posts: 5947
Joined: Thu Sep 01, 2011 9:09 am
Location: San Jose, CA, USA

Re: 341 - Non-Stop Travel

Post by brianfry713 »

It looks like you figured it out.
Check input and AC output for thousands of problems on uDebug!
battirunner
New poster
Posts: 14
Joined: Fri Aug 15, 2014 3:48 pm

Re: 341 Non-Stop Travel

Post by battirunner »

oulongbin wrote:Hi,i used the "Dijkstra" to solve this problem,but got WA.i don't know why i was wrong,can somebody give me some special case??thank you .

Code: Select all

got AC..... was a bit of tricky input
 

cshung_test
New poster
Posts: 4
Joined: Mon Sep 29, 2014 6:25 pm

Re: 341 - Non-Stop Travel

Post by cshung_test »

Be careful with disconnected graph.

Code: Select all

4
1 2 3
0
1 3 4
0
1 2

0
Expected output:

Code: Select all

Case 1: Path = 1 2; 3 second delay
ssavi
New poster
Posts: 28
Joined: Thu Nov 20, 2014 9:57 pm

Re: 341 - Non-Stop Travel

Post by ssavi »

Hi, I have tried All the Cases of Samples & Forum .... Looks Okey . But Getting Wrong Answer . What's the Tricky Part of this Problem . Anyone help please .... Here is the Code : http://ideone.com/1uzCv7

Thanks in Advance . Hoping help in 5 Hours please .
I know I am a Failure Guy . :(
Mavavto
New poster
Posts: 19
Joined: Wed Dec 28, 2016 3:00 pm

-

Post by Mavavto »

Уважаемые друзья
Объявляю о начале акции "Step-NON-Stop"
Данная акция посвящена всем любителям муховязания, а также тем, кто просто интересуется этим замечательным искусством.
В течение мая месяца каждый день будет выкладываться новый степ-бай-степ пошаговая инструкция по вязанию конкретной мушки.
Желаю Всем приятного настроения и - вяжите господа..., вяжите

P.S. В действительности акция, возможно, продлится - так как выложить предполагается более 30 пошаговых инструкций степов. Степы будут выкладываться каждый рабочий день, по выходным - на мое усмотрение.
Post Reply

Return to “Volume 3 (300-399)”