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 1696. Salary for Robots

More Tests
Posted by Mohamed K. Cena 2 Jun 2013 21:29
Could you please provide more tests.
I have WA#2 No idea why! although all the tests in the other discussions succeeded including the original test case
Re: More Tests
Posted by Alexandru Valeanu 8 Jan 2014 01:10
Answer for #2 is P. So have to be carefull not to print ( sol + 1 ) % P. You have to print
just sol + 1 because months are numbered from 1 to P.

Tests:
20 30 1000 ans: 177
41 56 23   ans:  12
10 5 1000  ans: 185