Submission #823821

#TimeUsernameProblemLanguageResultExecution timeMemory
823821petezaBoarding Passes (BOI22_passes)C++14
5 / 100
2 ms468 KiB
#include <bits/stdc++.h> using namespace std; string s(899, 'A'); double f(int len) { return 1.00*(len/2)*(len/2-1)/2; } int main() { cin >> s; cout << fixed << setprecision(3); if(s.size() & 1) { cout << (f(s.size()-1) + f(s.size()+1))/2.00; } else { cout << f(s.size()); } }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...