Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #define _CRT_SECURE_NO_DEPRECATE
- #include <iostream>
- #include <vector>
- #include <string>
- #include <map>
- #include <set>
- #include <algorithm>
- #define li long long
- using namespace std;
- int main() {
- //freopen("input.txt", "r", stdin);
- //freopen("output.txt", "w", stdout);
- vector<unsigned long long> a(93);
- a[0] = 1;
- a[1] = 1;
- for (int i = 2; i < 93; i++) {
- a[i] = a[i - 1] + a[i - 2];
- }
- int n;
- cin >> n;
- cout << a[n];
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement