The opperation << doesn't generate long long

Revision en1, by 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?

#### History

Revisions

Rev. Lang. By When Δ Comment
en1 Taha1506 2020-12-04 22:51:17 385 Initial revision (published)