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 » Fri Nov 14, 2014 11:31 pm

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 » Fri Nov 14, 2014 11:35 pm

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 » Fri Nov 14, 2014 11:40 pm

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 » Thu Dec 04, 2014 8:02 pm

AC

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

Re: 341 - Non-Stop Travel

Post by battirunner » Fri Dec 19, 2014 4:54 pm

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 » Wed Dec 24, 2014 12:20 am

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 » Fri Dec 26, 2014 8:04 pm

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 » Sat Dec 27, 2014 5:45 pm

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 » Wed Nov 11, 2015 3:15 am

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 . :(

Post Reply

Return to “Volume 3 (300-399)”