# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
614336 | Plurm | Boarding Passes (BOI22_passes) | C++11 | 0 ms | 212 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include <bits/stdc++.h>
using namespace std;
char s[100005];
double solve(int n) {
double ans = ((n / 4) * (n + 1) + (n % 2 == 1 ? 1 : 0)) / 2.0;
return max(ans, 0.0);
}
int main() {
scanf("%s", s);
int n = strlen(s);
printf("%.6f\n", solve(n));
}
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |