Submission #948738

#TimeUsernameProblemLanguageResultExecution timeMemory
948738ifateenBoarding Passes (BOI22_passes)C++17
5 / 100
2 ms604 KiB
#include <bits/stdc++.h> using namespace std; #define int long long signed main() { string s; cin >> s; long double n = s.length(); long double a = floor(n / 2), b = ceil(n / 2); cout << fixed << setprecision(8) << (a * (a - 1) + b * (b - 1)) / 4.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...