Advertisement
aaaryaaan9877

chefcooksCPP

Apr 21st, 2022
38
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.16 KB | None | 0 0
  1. #include<bits/stdc++.h>
  2. using namespace std;
  3. int main() {
  4.  
  5. int tc,l;
  6. cin >> tc;
  7. while (tc--) {
  8. cin>>l;
  9. cout <<(pow(2,l))-1<<"\n";
  10. }
  11. return 0;
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement