Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <bits/stdc++.h>
- using namespace std;
- #define int long long
- int n;
- signed main()
- {
- cin >> n;
- int f[n + 1];
- f[1] = 3;
- for(int i = 2; i <= n; i++){
- f[i] = f[i - 1] * 2;
- }
- cout << f[n] << endl;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement