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 1104. Don’t Ask Woman about Her Age

Am i calculating this correctly? The sample test case gives wrong answer for my calculation
Posted by TwoFace 15 Jul 2015 10:09
A1A=10 1 10
For k=4,
10*(4^0)+1*(4^1)+10*(4^2)=174
174 is divisible by 3 so the answer for sample test case turns out to be 4.
What am I doing wrong? Thanks
Re: Am i calculating this correctly? The sample test case gives wrong answer for my calculation
Posted by ionkinssau6107 8 Aug 2015 00:22
A = 10 => min basic = 11