Submission #1098904

#TimeUsernameProblemLanguageResultExecution timeMemory
1098904ohadBoarding Passes (BOI22_passes)C++14
0 / 100
1 ms348 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)) / 2; else { cout << (size / 2 * (size / 2 - 1)) / 4 + ((size / 2 + 1) * (size / 2)) / 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...