Submission #868005

#TimeUsernameProblemLanguageResultExecution timeMemory
868005TAhmed33Boarding Passes (BOI22_passes)C++98
5 / 100
3 ms604 KiB
#include <bits/stdc++.h> using namespace std; typedef long double ld; int main () { string s; cin >> s; int n = s.length(); 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...