Submission #1099057

#TimeUsernameProblemLanguageResultExecution timeMemory
1099057NDT134Boarding Passes (BOI22_passes)C++14
0 / 100
1 ms344 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...