Can someone pls help with this problem

Правка en3, от 650iq, 2024-03-17 14:34:44

You are given an integer x which is initially 1. In one move You can perform either of the 2 operations — make x = x-1 or x=2*x. You need to perform exactly K such operations. Find if it is possible to make number N from X. Note N and K is very high upto 10^18.

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en3 Английский 650iq 2024-03-17 14:34:44 8 Tiny change: 'e You can either of' -> 'e You can perform either of'
en2 Английский 650iq 2024-03-17 14:34:25 35
en1 Английский 650iq 2024-03-17 14:33:22 270 Initial revision (published)