Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Vishruth-S/CompetitiveCode
/ Solve
Function
Solve
Codeforces_problems/New Theatre Square/solution.cpp:13–17 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
11
using namespace std;
12
13
void Solve(int n) {
14
double ans = 0;
15
for (int i=1; i<=n; i++) ans += 1.0 / i;
16
cout << fixed << setprecision(12) << ans << endl;
17
}
18
19
int main() {
20
ios_base::sync_with_stdio(0); cin.tie(NULL);
Callers
1
main
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected