How do you solve the "rational resistance" — 343A/344C problem on Codeforces?

Revision en1, by wallcrawler, 2018-06-03 15:30:12

I am not able to understand the editorial of the same. Please Help!! Link to the problem : http://mirror.codeforces.com/problemset/problem/343/A

Tags #number theory, #math

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English wallcrawler 2018-06-03 15:30:12 217 Initial revision (published)