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 1009. K-based Numbers

To Who do not know the meaning of N and K
Posted by an phan 25 Apr 2014 23:04
I got AC with 0.015s,216Kb
I had read the problem several time until understand.
N is the length of the digit number.
It will be something like that
a1 a2 a3 ...an
for each ai in a1 a2 a3..an, 0 <= ai < K.
The output number i used was interger (compiler C++ 2010). (no big number).

hope it can help you.
And sorry for my poor English.

Edited by author 25.04.2014 23:05
Re: To Who do not know the meaning of N and K
Posted by Nguyen Van Tuan 26 Dec 2015 09:53
thanks an phan. through your post, i have understanded a bit. but why K = 10. when a1 a2 a3....an <10 and lager or equal 0. i thinks result = 99. why 90? i suspect it? Thanks you so muck.
Re: To Who do not know the meaning of N and K
Posted by ToadMonster 29 Dec 2015 19:59
From task:
> 0001235 is not a 7-digit number, it is a 4-digit number.

So first zero isn't allowed. So,
0 < a1 < 10
0 <= a2...an < 10

Result is 9*10 = 90
Re: To Who do not know the meaning of N and K
Posted by highmath 8 Apr 2016 08:15
Maybe you just thought "00" is not the valid number, but the problem said "0001235 is not a 7-digit number, it is a 4-digit number. ", that means  01, 02...09 are not 2-digit numbers, they are 1-digit numbers, so the answer should be 90.
Re: To Who do not know the meaning of N and K
Posted by Khanhhuy_19 23 Jan 2018 12:30
Dear anphan . Your question is jam <3 <3<3