Help with problem 222C

Revision en1, by aranjuda, 2015-08-10 05:17:56

Hi, http://codeforces.com/contest/222/submission/12429658 My submission is failing test 15, and I cannot figure out why. I find the primes, then go through the numbers in the numerator and denominator. For each, I decrement it if possible and then print out whatever the numerator/denominator is after reduction.

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English aranjuda 2015-08-10 05:17:56 337 Initial revision (published)