Submission #1033946

# Submission time Handle Problem Language Result Execution time Memory
1033946 2024-07-25T08:02:19 Z vjudge1 Tents (JOI18_tents) C++17
Compilation error
0 ms 0 KB
#pragma GCC optimize("O3,unroll-loops")
#include <bits/stdc++.H>
using namespace std;

const int mod = 1e9 + 7;

long long dp[3008][3008];

long long C2(int x) {return (1LL * x * (x - 1) / 2) % mod;}

signed main() {
	int n, m; cin >> n >> m;
	for (int i = 0; i <= m; ++i) dp[0][i] = 1;
	for (int i = 0; i <= n; ++i) dp[i][0] = 1;
	for (int i = 1; i <= n; ++i) for (int j = 1; j <= m; ++j) 
		dp[i][j] = (dp[i][j - 1] + dp[i - 1][j - 1] * i * 4 + dp[i - 2][j - 1] * C2(i) + dp[i - 1][j - 2] * i * (j - 1)) % mod;
	cout << (dp[n][m] + mod -1 ) % mod;
}

Compilation message

tents.cpp:2:10: fatal error: bits/stdc++.H: No such file or directory
    2 | #include <bits/stdc++.H>
      |          ^~~~~~~~~~~~~~~
compilation terminated.