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

Function elevatr

CodeChef_problems/ELEVTR/solution.cpp:145–157  ·  view source on GitHub ↗

/

Source from the content-addressed store, hash-verified

143
144/********************************************************/
145int elevatr()
146{ int B[100000], Max, N;
147 int i, res, x;
148
149 scanf("%d %d\n", &N, &Max);
150 for (i=0; i<N; i++)
151 scanf("%d", &B[i]);
152
153 if (check_range(B, Max, N))
154 return -1;
155 res = solve_elevatr(B, Max, N);
156 return res;
157}
158
159/********************************************************/
160int main(void)

Callers 1

mainFunction · 0.85

Calls 2

check_rangeFunction · 0.85
solve_elevatrFunction · 0.85

Tested by

no test coverage detected