Page 1 of 1

12488 - Start Grid

Posted: Sat Sep 07, 2013 8:55 pm
by cyberdragon

Re: 12488 - Start Grid (WA)

Posted: Mon Sep 09, 2013 10:48 pm
by brianfry713
Input:

Code: Select all

5
1 2 3 4 5
5 4 3 2 1
AC output: 10

Re: 12488 - Start Grid (WA)

Posted: Thu Mar 06, 2014 1:46 pm
by uDebug
Here's some input / output that I found useful during testing / debugging.

Input:

Code: Select all

2
1 2
1 2
2
12 1
1 12
24
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
10 1 24 3 23 4 6 9 11 13 14 15 16 7 8 17 12 18 19 5 20 21 22 2
AC Output:

Code: Select all

0
1
98

Re: 12488 - Start Grid

Posted: Fri Apr 19, 2019 2:58 pm
by hquilo
Hi Vinit,

Could you please check the second test case you posted?

Code: Select all

2
12 1
1 12
It does not conform to the input description: "Each competitor is identified by a number from 1 to N." In this case, 12 is not a valid competitor identifier (it should be 2 instead of 12).

Best regards,


Camilo