MCPcopy Create free account
hub / github.com/Jonathan-Uy/CSES-Solutions / main

Function main

String Algorithms/Distinct Substrings.cpp:60–70  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58}
59
60int main(){
61 scanf(" %s", S);
62 N = (int) strlen(S);
63
64 init();
65 for(int i = 0; i < N; i++)
66 extend(S[i]);
67 calc();
68
69 printf("%lld\n", node[0].dp-1);
70}

Callers

nothing calls this directly

Calls 3

initFunction · 0.70
extendFunction · 0.70
calcFunction · 0.70

Tested by

no test coverage detected