ENG  RUSTimus 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

Tests and hints here.
Posted by 2BEB8CEC 13 Oct 2011 19:15
A couple of tests that I obtained from my working program:

998 999 972
48 63 159 174 270 285 381 396 492 507 603 618 714 729 825 840 936 951

998 999 900
-1

Scroll down for hint.
v
v
v
v
v
v
v
v
v
v
v
v
v
v
v
v
v
v
v
v
v
v
v
v
v
v
v
v
v
v
v
v
v
v
v
v
v
v
v
v

Hint:  (A*B) MOD C = ((A MOD C) * B) MOD C

Edited by author 13.10.2011 19:15

Edited by author 13.10.2011 19:16
Re: Tests and hints here.
Posted by Maxim_tmn 10 Apr 2014 17:06
With numbers 998 999 972 answer must be -1< because, 1 < M < 999