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 1012. K-based Numbers. Version 2

WHAT IDEA SOLVE THIS PROBLEM ??? I KNOW ONE, BUT...(SEE HERE)
Posted by vano_B1 14 Jul 2003 23:24
algoritm:

s:=0;
for i:=2 to n-1 do s:=s+(k-1)^(i-1)*k^(n-i-1);
write(s);

I think it isn't right algoritm (К тому же so long)
I got AC
Posted by vano_B1 16 Jul 2003 23:18
what is it meaning
Posted by zzzlll 3 Jan 2007 22:09
what is the meaning of ^ ??????