1 solutions
-
1
#include<bits/stdc++.h> using namespace std; void read(int &h){ char o; int x=0,y=1; o=getchar_unlocked(); while(!(o<='9'&&o>='0')){ if(o=='-'){ y=-1; } o=getchar_unlocked(); } while(o<='9'&&o>='0'){ x*=10; x+=o-'0'; o=getchar_unlocked(); } h=x*y; return ; } int n; int ans=1; int main(){ ios::sync_with_stdio(0);cin.tie(0);cout.tie(0); read(n); for(int i=1;i<n;i++){ ans+=1; ans*=2; } cout<<ans; return 0; }
- 1
Information
- ID
- 9765
- Time
- 1000ms
- Memory
- 125MiB
- Difficulty
- 1
- Tags
- (None)
- # Submissions
- 36
- Accepted
- 33
- Uploaded By