MCPcopy Create free account
hub / github.com/codemistic/Data-Structures-and-Algorithms / solve

Function solve

CSES/DP/GridPaths.cpp:39–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37}
38
39void solve() {
40 int N; cin >> N;
41 vector<vector<char>> grid(N,vector<char> (N));
42 vector<vector<int>> dp(N+1,vector<int> (N+1,-1));
43 rep(i,0,N) {
44 rep(k,0,N) {
45 cin >> grid[i][k];
46 }
47 }
48 cout << f(N-1,N-1,grid,dp) << '\n';
49}
50
51signed main() {
52 ios_base::sync_with_stdio(false),cin.tie(nullptr);

Callers 1

mainFunction · 0.70

Calls 1

fFunction · 0.70

Tested by

no test coverage detected