CarroT1212 8 months ago, # ^ | 0 Try this case. I found my wa*1 solution output 0 0 during the contest. input: 1 999999999 1000000000 output: 0 1 → Reply brave-kid 8 months ago, # ^ | 0 can you please see my comment below? → Reply SkyWave2024 8 months ago, #...
LC(23524⋅31)=2max(3,4)⋅3max(51L(23⋅35,24⋅31)=2max(3,4⋅,1). FactorizeMMand computenumi=primeexponentiinumi=primeiexponentiinMM. If someaiaidoes not divideMM, we can ignoreaiai(the exponent of some prime is bigger inaiaithan inMM). For eachaiaithat divides M, let's ...