ENG
RUS
Timus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board
Discussion of Problem
1110
. Power
Because of p*=(i%m) was WA
Posted by
Lieutenant
10 Oct 2019 11:55
Because of p*=(i%m) was WA. When I wrote p=(p*i)%m instead of p*=(i%m) then I got AC
Why???
Re: Because of p*=(i%m) was WA
Posted by
Юрий
28 Oct 2019 11:48
p*=(i%m) <==> p=p*(i%m) != (p*i)%m
© 2000–2024
Timus Online Judge Team
. All rights reserved.