제출 #721749

#제출 시각아이디문제언어결과실행 시간메모리
721749gagik_2007Boarding Passes (BOI22_passes)C++17
5 / 100
3 ms596 KiB
#include <iostream> #include <iomanip> using namespace std;int main(){ long long 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...