Can someone pls help with this problem

Revision en1, by 650iq, 2024-03-17 14:33:22

You are given an integer x which is initially 1. You can perform 2 operation 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.

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en3 English 650iq 2024-03-17 14:34:44 8 Tiny change: 'e You can either of' -> 'e You can perform either of'
en2 English 650iq 2024-03-17 14:34:25 35
en1 English 650iq 2024-03-17 14:33:22 270 Initial revision (published)