#include using namespace std; typedef long long ll; typedef unsigned long long ull; #define REP(i, n) for(int i=0; ibool chmax(T &a, const T &b) { if (abool chmin(T &a, const T &b) { if (b> N >> L >> H; vector C(N); for(auto& c : C) cin >> c; ll ans = 0; dfs(0, 0, 1, ans, C); cout << ans << endl; return 0; }