Back to task

89 symbols python3
Fri Aug 8 23:06:27 2014 z423x5c6
i=input
j=int
a=j(i())
b=j(i())
c=j(i())
d=(a-1)*(b-1)
e=1
while c*e%d!=1:
 e+=1
print(e)


Leave a comment

Parsed as Markdown

Login to leave a comment