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

Function fo

Codeforces_problems/police recruits/solution.cpp:12–14  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10 //p[n] is the array of crime cases and recuitments
11 int p[n];
12 fo(i,n){
13 cin>>p[i];
14 }
15 //if the i th element of the array is anything except -1 (which denotes crime) that means police recruited is increased from 0
16 //else if the crime is increased that means police is assigned and no of policeman free decreases
17 //otherwise if police count becomes 0 and crimes are reported counts increase which denotes unresolved crimes

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected