Page 1 of 1

12650 - Dangerous Dive

Posted: Thu Jan 30, 2014 2:06 pm
by uDebug
I nearly missed the following line while reading the problem description:
Leave a blank space after each identifier (notice that, therefore, there must be a blank space after the last identifier in the line).
So, for the following input:

Code: Select all

5 3
3 1 5
6 6
6 1 3 2 5 4
10 4
9 8 1 2
The AC output is as follows where "." indicates a space (" ") character - and "|" represents a newline ("\n" - in C / C++).

Code: Select all

2.4.| 
*|
3.4.5.6.7.10.|

Re: 12650 - Dangerous Dive

Posted: Thu Oct 02, 2014 4:30 pm
by moudud99
I think my code is right but actually it's wrong.
Can anyone help me?
Thanks in advance.

Code: Select all

Bugs eating me!

Re: 12650 - Dangerous Dive

Posted: Thu Oct 02, 2014 4:47 pm
by lighted
Change line to

Code: Select all

if(dead.size()>0)
Don't forget to remove your codes after getting accepted. 8)

Re: 12650 - Dangerous Dive

Posted: Thu Oct 02, 2014 6:47 pm
by moudud99
Thanks a lot you lighted!