причесал чутка код
parent
a527f65a9a
commit
e044020522
2
euler.py
2
euler.py
|
@ -30,7 +30,7 @@ def solve(task):
|
||||||
x0 = (b1 * pow(a1, euler(m1) - 1, m1)) % m1
|
x0 = (b1 * pow(a1, euler(m1) - 1, m1)) % m1
|
||||||
s=''
|
s=''
|
||||||
for i in range(d):
|
for i in range(d):
|
||||||
s += f"x={(x0 + i * m//d) % m}mod{m}\n"
|
s += f'x={(x0+m//d*i)%m}mod{m}\n'
|
||||||
return s[:-1]
|
return s[:-1]
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
|
|
Loading…
Reference in New Issue