MCPcopy 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

11using namespace std;
12
13void 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
19int main() {
20 ios_base::sync_with_stdio(0); cin.tie(NULL);

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected