Back to task

75 symbols python3
Sat Oct 25 19:23:18 2014 z423x5c6
i=input
j=int
a=~-j(i())*~-j(i())
b=j(i())
c=1
while(b*c%a-1):c+=1
print(c)


Leave a comment

Parsed as Markdown

Login to leave a comment