|
|
вернуться в форумДайте, пожалуйста, подсказку... Use binary search Oh, no! It is not interesting to solve this problem with binary search. Here is a formula. Что за формула? You have to find it yourself :) But it's not so difficult to find it. Just replace a1 with a0 and a2, then a2 with a1 and a3,... After four or five such replaces you will see dependence. Edited by author 04.07.2012 11:30 ну ок... Deriving formula for calculation of a1 makes it simple. |
|
|