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

Function main

Hackerrank_problems/Find_digits/solution.cpp:22–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20}
21
22int main()
23{
24 ofstream fout(getenv("OUTPUT_PATH"));
25
26 int t;
27 cin >> t;
28 cin.ignore(numeric_limits<streamsize>::max(), '\n');
29
30 for (int t_itr = 0; t_itr < t; t_itr++) {
31 int n;
32 cin >> n;
33 cin.ignore(numeric_limits<streamsize>::max(), '\n');
34
35 int result = findDigits(n);
36
37 fout << result << "\n";
38 }
39
40 fout.close();
41
42 return 0;
43}

Callers

nothing calls this directly

Calls 2

maxFunction · 0.85
findDigitsFunction · 0.85

Tested by

no test coverage detected