Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int count = 1;
- for (int i=N; i > 0; i /= 2) {
- for (int j=i; j > 0; j--) {
- count += count;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement