al__nasim

Vinci to the power

Apr 1st, 2016
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <math.h>
  3.  
  4. int main()
  5. {
  6. int a;
  7. scanf("%d",&a);
  8. long long res;
  9. if(a<13)
  10. {
  11. res =pow(2,a);
  12. printf("%I64d\n",res);
  13. }
  14. else
  15. {
  16. res = 8092*pow(2,a-13);
  17. printf("%I64d\n",res);
  18. }
  19. return 0;
  20. }
Advertisement
Add Comment
Please, Sign In to add comment