Submission #875294

#TimeUsernameProblemLanguageResultExecution timeMemory
87529412345678Boarding Passes (BOI22_passes)C++17
0 / 100
1 ms604 KiB
#include <bits/stdc++.h> using namespace std; int main() { cin.tie(NULL)->sync_with_stdio(false); int n; string s; cin>>s; n=s.size(); int k=n/2; double res=((k-1)*k)/2.0; if (n%2==0) printf("%.4f", res); else printf("%.4f", res+(((n+1)/2-1))/2.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...