Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Vishruth-S/CompetitiveCode
/ solve
Function
solve
Spoj_problems/FCTRL/solution.cpp:16–23 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
14
*/
15
16
int solve(int n){
17
int res = 0, i=5;
18
while(n/i){
19
res = res + n/i; //Count of 5s
20
i = i*5; //Considering hidden 5s (like in 25 = 5*5)
21
}
22
return res;
23
}
24
int main()
25
{
26
jaadu;
Callers
1
main
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected