MCPcopy Create free account
hub / github.com/Ayush7614/Daily-Coding-DS-ALGO-Practice / main

Function main

Atcoder dp/N - Slimes.cpp:43–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41 }
42}
43int main() {
44 int n;
45 cin >> n ;
46 memset(dp, -1, sizeof dp);
47 vector<int> v(n+1);
48 for(int i = 1; i <= n; i++)
49 cin>>v[i];
50 preprocess(v,n);
51 cout<<solve(v, 1, n);
52 return 0;
53}

Callers

nothing calls this directly

Calls 2

preprocessFunction · 0.85
solveFunction · 0.70

Tested by

no test coverage detected