Submission #1098913

#TimeUsernameProblemLanguageResultExecution timeMemory
1098913ohadBoarding Passes (BOI22_passes)C++14
0 / 100
2 ms600 KiB
#include <iostream> #include <vector> #include <cmath> #include <iomanip> #include <stdio.h> using namespace std; typedef long long ll; int main() { string a; cin >> a; int size = a.length(); if (size % 2 == 0) cout << (size / 2 * (size / 2 - 1)) / double(2); else { long double x = ((size / 2 * (size / 2 - 1)) / double(4)); long double y = ((size / 2 + 1) * (size / 2)) / double(4); y += x; cout << fixed << setprecision(6) << y; } }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...