제출 #1098913

#제출 시각아이디문제언어결과실행 시간메모리
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...