0
1
mirror of https://git.sb/baoshuo/OI-codes.git synced 2024-09-20 15:05:24 +00:00
OI-codes/Luogu/problem/P1722/P1722.cpp

21 lines
350 B
C++
Raw Normal View History

2020-11-18 11:45:21 +00:00
#include <bits/stdc++.h>
using namespace std;
unsigned long long n, f[105];
int main() {
cin >> n;
f[0] = 1;
for (int i = 1; i <= n; i++) {
int j = 0;
while (j <= i - 1) {
f[i] += f[j] * f[i - j - 1];
f[i] %= 100;
j++;
}
}
cout << f[n] % 100 << endl;
return 0;
}