Submission #868004

#TimeUsernameProblemLanguageResultExecution timeMemory
868004TAhmed33Boarding Passes (BOI22_passes)C++98
0 / 100
1 ms348 KiB
#include <bits/stdc++.h> using namespace std; typedef long double ld; int main () { int n; cin >> n; ld ans = 0; for (int i = 2; i < n; i++) { ans += min(0.5 * (i - 1), 0.5 * (n - i)); } cout << fixed << setprecision(3) << ans << '\n'; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...