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

num2=numerador,<strong>de</strong>n2=<strong>de</strong>nominador;//guardando solucion<br />

//mostrando la menor solucion.<br />

if(num1==INFINITO&&num2==INFINITO)printf("0 0\n");<br />

else if(num1*<strong>de</strong>n2>num2*<strong>de</strong>n1)printf("%ld %ld\n",num2,<strong>de</strong>n2);<br />

else printf("%ld %ld\n",num1,<strong>de</strong>n1);<br />

}<br />

}

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

Saved successfully!

Ooh no, something went wrong!