Tower Breakers - The Final Battle

  • + 1 comment

    According to problem statement x>=2 and k>= 1 and k<=x ;

    so for example if n=4; coin =0 (initially) 4=>{2,2} since k >=1 left {2} and coin=1^2=1 now 2=>{1,1} i.e. x=2; now take both coin 2^2=4 so answer = 1+4=5 then why 6 in testcase ...