Submission #1099063

#TimeUsernameProblemLanguageResultExecution timeMemory
1099063NDT134Boarding Passes (BOI22_passes)C++14
0 / 100
0 ms348 KiB
#include<iostream> using namespace std; int main() { string s; cin >> s; int n = s.size(); double r = 0; double x = n / 2; r += x * (x - 1); x = (n + 1)/2; r += x * (x - 1); r *= 0.25; cout << r << endl; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...