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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Explicaciones a <strong>los</strong> <strong>problemas</strong> South American Regionals 2008 69<br />

Programa C que soluciona el problema<br />

#inclu<strong>de</strong><br />

#<strong>de</strong>fine MAXVERTICES 100000<br />

#<strong>de</strong>fine TRUE 1<br />

#<strong>de</strong>fine FALSE 0<br />

int distancia[MAXVERTICES+1];<br />

int lado,circunferencia;<br />

int n;<br />

int check(int k) {<br />

int i,j,jj,in,next,numlados,distanciaActual;<br />

}<br />

lado=circunferencia/k;<br />

in=distanciaActual=0;<br />

distanciaActual=distancia[in];<br />

while (distanciaActual

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

Saved successfully!

Ooh no, something went wrong!