Back to task

89 symbols python3
Fri Aug 8 23:05:15 2014 z423x5c6
i=input
a=int(i())
b=int(i())
c=int(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