The opperation << doesn't generate long long

Правка en1, от Taha1506, 2020-12-04 22:51:17

In today's contest I used (1<<k) to denote $$$2^k$$$ but.It turned out that (1<<k) won't generate long long values so I got time limit exceeded in test three.Then I decide to implement power using multiply and return both the power and the number itself but it take more amount of code and I used to spend many time debugging it.Any suggestions?

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский Taha1506 2020-12-04 22:51:17 385 Initial revision (published)