what's output for N=5,K=10??

and also

N=6,K=10

N=7,K=10

N=6,K=2

Re: what's output for N=5,K=10??

Posted by

xwj1234 10 Oct 2008 19:07

N=5,K=10 the answer is 87480

N=6,K=10 the answer is 866781

N=7,K=10 the answer is 8588349

N=6,K=2 the answer is 13

my program has been accepted

Re: what's output for N=5,K=10??

Posted by

Hrayr 8 May 2011 17:37

I have solved this problem,but I got WA on test #2.When n=6,k=10 I get answer 866781 and others tests I get right answer.What is the test #2???????????????

N=5,K=10 the answer is 87480

Re: what's output for N=5,K=10??

350975

350974

350973

350971

350970

350967

350966

350965

350959

350958

350957

350955

350954

350943

350942

350941

350939

350938

for n = 6 , k = 2 this values are true

more than 13

Re: what's output for N=5,K=10??

Posted by

Michael 19 Aug 2020 13:21

You are not right because k = 2 => all numerals < 2. Ok?

And now I show you this 13 numbers:

111111

111110

111101

111011

110111

101111

111010

110110

110101

101110

101101

101011

101010

sorry for my English

*Edited by author 19.08.2020 13:21*

*Edited by author 19.08.2020 13:21*