Advertisement
shipu_a

Div 1 Problem E

Jan 15th, 2013
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.56 KB | None | 0 0
  1. #include<cstdio>
  2. #include<cstring>
  3. #include<string>
  4. #include<cmath>
  5. #include<iostream>
  6. #include<cctype>
  7. #include<map>
  8. #include<stack>
  9. #include<cstdlib>
  10. #include <queue>
  11. #include <vector>
  12. #include<algorithm>
  13. #define ll long long
  14. #define sc scanf
  15. #define pf printf
  16. #define Pi 2*acos(0.0)
  17. using namespace std;
  18. int main()
  19. {
  20. //    freopen("in.txt","r",stdin);
  21. //    freopen("out.txt","w",stdout);
  22. long long int n,t,s,no=0;
  23. scanf("%lld",&t);
  24. while(t--)
  25. {
  26. scanf("%lld",&n);
  27. n=n+1;
  28. s=pow(2,n)-1;
  29. printf("Case %lld: %lld\n",++no,s);
  30. }
  31. return 0;
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement