12650 - Dangerous Dive
Posted: Thu Jan 30, 2014 2:06 pm
I nearly missed the following line while reading the problem description:
The AC output is as follows where "." indicates a space (" ") character - and "|" represents a newline ("\n" - in C / C++).
So, for the following input:Leave a blank space after each identifier (notice that, therefore, there must be a blank space after the last identifier in the line).
Code: Select all
5 3
3 1 5
6 6
6 1 3 2 5 4
10 4
9 8 1 2
Code: Select all
2.4.|
*|
3.4.5.6.7.10.|