MCPcopy Create free account
hub / github.com/Vishruth-S/CompetitiveCode / main

Function main

Codeforces_problems/Vasya and String/solution.cpp:41–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39}
40
41int main(int argc, char const *argv[])
42{
43 cin >> n >> k;
44 cin >> s;
45
46 int a = BeautyString('a');
47 int b = BeautyString('b');
48
49 // Finally, we compare which one did the greater substring
50 cout << max(a,b) << '\n';
51
52 return 0;
53}

Callers

nothing calls this directly

Calls 2

BeautyStringFunction · 0.85
maxFunction · 0.85

Tested by

no test coverage detected