Codeforces и Polygon могут быть недоступны в период с 23 мая, 7:00 (МСК) по 23 мая, 11:00 (МСК) в связи с проведением технических работ. ×
Изменения рейтингов за последние раунды временно удалены. Скоро они будут возвращены. ×

Be careful with log2() !!!!

Правка en1, от BlueBlade, 2018-01-08 00:00:45

What is the ans of floor of log2(288230376151711743) ??? Run a code with builtin log2() function, ans is 58 !!! Even google gives the ans 58 !!! Now write a code yourself to find the log2(x), and put x = 288230376151711743 . The actual answer is 57 !!!

couldn't get it !!!

Теги log2()

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский BlueBlade 2018-01-08 00:00:45 310 Initial revision (published)