Submission #741702

#TimeUsernameProblemLanguageResultExecution timeMemory
741702mohav48173Boarding Passes (BOI22_passes)C++14
5 / 100
3 ms596 KiB
#include<bits/stdc++.h> using namespace std; int main() { string s;cin>>s; int n=s.size(); double ans=0; for(int i=0;i<n;i++) { ans+=((double)(min(i,n-i-1))/(double)2.0); } cout<<fixed<<setprecision(7); cout<<ans<<endl; 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...