#include<iostream> #define dbug(x) cout<<">"<<x<<endl; using namespace std; int main() { int index,i; long long a[37]; a[0]=1; for(i=1; i<=36; i++) { a[i]=a[i-1]*2; if(a[i]==8192) a[i]=a[i]-100; //dbug(a[i]); } while(cin>>index) { cout<<a[index]<<endl; } }
Saturday, May 21, 2016
CF 4A
Labels:
Codeforces
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment
Thank you for commenting. Please wait for response :)