제출 #1098905

#제출 시각아이디문제언어결과실행 시간메모리
1098905ohadBoarding Passes (BOI22_passes)C++14
0 / 100
1 ms344 KiB
#include <iostream> #include <string> using namespace std; typedef long long ll; int main() { string a; cin >> a; ll size = a.length(); if (size % 2 == 0) cout << (size / 2 * (size / 2 - 1)) / double(2); else { cout << (size / 2 * (size / 2 - 1)) / double(4) + ((size / 2 + 1) * (size / 2)) / double(4); } }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...