Can anyone help me with the josephus problem II from cses set

Правка en1, от Pal, 2021-01-29 23:39:08

it is giving TLE in some of test cases

here is link to my code https://cses.fi/paste/3b8de947940f05b018bda3/

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский Pal 2021-01-29 23:39:08 172 Initial revision (published)