Submission #860729

#TimeUsernameProblemLanguageResultExecution timeMemory
860729E869120Boarding Passes (BOI22_passes)C++14
5 / 100
2 ms604 KiB
#include <bits/stdc++.h> using namespace std; int N; string S; int main() { // Step 1. Input cin >> S; N = S.size(); // Step 2. Calculate double Answer = 0.0; for (int i = 0; i < N; i++) { Answer += 0.5 * min(i, N - 1 - i); } printf("%.12lf\n", Answer); return 0; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...