Submission #721748

#TimeUsernameProblemLanguageResultExecution timeMemory
721748gagik_2007Boarding Passes (BOI22_passes)C++17
0 / 100
3 ms468 KiB
#include <iostream> #include <iomanip> using namespace std; int main(){ int n; string s; cin>>s; n=s.size(); double S=(n/2)*(n/2-1)+((n+1)/2)*((n+1)/2-1); cout<<setprecision(12)<<fixed; cout<<S/4.0<<endl; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...