|
|
вернуться в форумPlease anyone O(n) :( i did it N2 and got AC but i want O(n) You can get 0.03 s, but it isn't O(n) exactly :) (-) > Anyway how???? how in 0.03?? > > Re: You can get 0.03 s, but it isn't O(n) exactly :) (-) Post your code so that I can help you. Thanks or email me personally to drghalib@yahoo.com Re: Please anyone O(n) :( i did it N2 and got AC but i want O(n) You don't need to check all values which are less than the current value. You have to check only all percents from 1 to 100, for each value between s and n. |
|
|