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

When k is 2, every integer is divisible by k-1,isn't it?
Posted by soldier0 20 Oct 2001 01:30
May I ask a question?
In sample case,my program returned k=2.
actually,it is quite natual
"When k is 2, every integer is divisible by k-1"
I can't understand the reason.
Does it mean
"k is bigger than the character used in the inputted
string"??
Re: When k is 2, every integer is divisible by k-1,isn't it?
Posted by Dinu Adrian Florin 29 Apr 2004 18:27
it is obvios that a k base number can't have digits larger then k
It even must have not equal to k digits.
Posted by Vlad Veselov 29 Apr 2004 18:52