0
这是公式a^b = c(mod m) a = 122 b = 177 m = 197 c =?x = math.fmod(c,m)OverflowError:int太大而无法转换为float
这是Python代码;
a=int(input("Lütfen üssünü almak istediğiniz sayıyı giriniz: "))
b=int(input("Lütfen sayının üssü değerini giriniz: "))
m=int(input("Lütfen hesaplanacak Mod değerini giriniz: "))
import math
c=a**b
x=math.fmod(c,m)
print(x)
但是我得到一个错误。你可以帮我吗?
x=math.fmod(c,m)
OverflowError: int too large to convert to float