Submission #1098905

#TimeUsernameProblemLanguageResultExecution timeMemory
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...