I have started learning JAVA recently. I wrote a code for [this problem.](https://codeforces.net/contest/1113/problem/C)↵
↵
Reference to my code is [here.](https://codeforces.net/contest/1113/submission/50270730)↵
↵
I can't find out why it is giving me TLE. Can someone help out?↵
↵
**UPD** : I found the problem. I needed to keep `1 << 20` in parenthesis.
↵
Reference to my code is [here.](https://codeforces.net/contest/1113/submission/50270730)↵
↵
I can't find out why it is giving me TLE. Can someone help out?↵
↵
**UPD** : I found the problem. I needed to keep `1 << 20` in parenthesis.