14.01.2013 Views

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

SHOW MORE
SHOW LESS

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 34<br />

Sample input<br />

5<br />

9 9 1979 440<br />

29 10 1979 458<br />

30 10 1979 470<br />

1 11 1979 480<br />

2 11 1979 483<br />

3<br />

5 5 2000 6780<br />

6 5 2001 7795<br />

7 5 2002 8201<br />

8<br />

28 2 1978 112<br />

1 3 1978 113<br />

28 2 1980 220<br />

1 3 1980 221<br />

5 11 1980 500<br />

14 11 2008 600<br />

15 11 2008 790<br />

16 12 2008 810<br />

0<br />

Output for the sample input<br />

2 15<br />

0 0<br />

2 191

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!