Soluciones y Explicación de los problemas ACM ... - ICPC Bolivia
Soluciones y Explicación de los problemas ACM ... - ICPC Bolivia
Soluciones y Explicación de los problemas ACM ... - ICPC Bolivia
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
Explicaciones a <strong>los</strong> <strong>problemas</strong> South American Regionals 2008 66<br />
Sample input<br />
3<br />
1000 1000 1000<br />
6<br />
1 2 3 1 2 3<br />
3<br />
1 1 2<br />
10<br />
10 40 20 30 30 10 10 50 24 26<br />
0<br />
Output for the sample input<br />
0<br />
2<br />
-1<br />
5