|
0
No, it is right since Xi is refering to the height of the BOTTOM of block from common ground |
|
0
checkout submission by handle "neal" and for explanation take a look at the post-contest stream he did on Twitch |
|
0
sorry k is actually (finalDest-x-1)th step, for 7 finalDest will be 10, so difference=3 so inspite of taking second step greedily, take a step back and again proceed greedily |
|
0
keep moving greedily and once you cross you destination you will come to know what step you should not have taken greedily that will be K=(finalDest-x)th step. |
|
+3
it is right that all subsequent elements have to be at least 25 but it does not mean that to make them at least 25 we have to perform 25 or more operations.[12,13,25,12,20] here we need only 13 operations. Hope I got you right!!! |
|
0
if n is an odd and a multiple of 3, we can directly have largest factor x=(n/3) |
|
0
Nice!!! Thanks |