msiamn

Codeforces A. De Vinci Powers

May 19th, 2016
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 1.65 KB | None | 0 0
  1. /*******************************************************************************\
  2. |*********S***   ******  *************  *************  **************  *  ******|
  3. |***********   ********  ************    ************    ***********  **  ******|
  4. |*********   **********  ***********  *** ***********  *  *********  ***  ******|
  5. |********   ***********  *I********  ****  **********  ***  *****  *****  ******|
  6. |********   ***********  *********  ******  *********  *****  **  ******  ******|
  7. |**********   *********  ********  ***A****  ********  *******  ********  ******|
  8. |***********   ********  *******  **********  *******  *****************  ******|
  9. |**********   *********  ******  ************  ******  *****************  ******|
  10. |********   ***********  *****  **************  *****  ********M********  ******|
  11. |*****   **************  ****  ****************  ****  *****************  ******|
  12. |*******************************************************************************|
  13. |**************BSMRSTU********************************CSE***********************|
  14. \*******************************************************************************/
  15. #include<stdio.h>
  16. #include<string.h>
  17. #include<math.h>
  18. #include<conio.h>
  19. #include<stdlib.h>
  20. #define ll long long
  21. #define B break
  22. #define C continue
  23. #define sf scanf
  24. #define pf printf
  25. #define byebye return 0
  26. int main()
  27. {
  28.     ll i,x,a,b,c[100];
  29.     sf("%lld",&b);
  30.     if(b<0)
  31.         byebye;
  32.     if(b>=0 && b<13)
  33.     {
  34.         x=1<<b;
  35.         pf("%lld",x);
  36.         byebye;
  37.     }
  38.     a=pow(2,13)-100;
  39.     for(i=13; i<=40; i++)
  40.     {
  41.         c[i]=a;
  42.         a=a*2;
  43.     }
  44.     pf("%lld",c[b]);
  45.     byebye;
  46. }
Advertisement
Add Comment
Please, Sign In to add comment