| Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|
| 87393 | sh25_wanghy | 栈 | C++ | Accepted | 0 MS | 248 KB | 329 | 2026-04-17 14:48:21 |
#include <iostream> using namespace std; int n; long long a[20]; int main() { cin >> n; a[1] = a[0] = 1; for ( int i = 2 ; i <= n ; ++ i ) { for ( int j = 0 ; j < i ; ++ j ) { a[i] += a[j] * a[i - j - 1]; } } cout << a[n] << endl; return 0; }