# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
614336 | 2022-07-31T01:53:44 Z | Plurm | Boarding Passes (BOI22_passes) | C++11 | 0 ms | 212 KB |
#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
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 0 ms | 212 KB | found '100800.5000000000', expected '100800.5000000000', error '0.0000000000' |
2 | Incorrect | 0 ms | 212 KB | 1st numbers differ - expected: '0.0000000000', found: '0.5000000000', error = '0.5000000000' |
3 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 0 ms | 212 KB | 1st numbers differ - expected: '1.0000000000', found: '3.5000000000', error = '2.5000000000' |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 0 ms | 212 KB | 1st numbers differ - expected: '1.0000000000', found: '3.5000000000', error = '2.5000000000' |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 0 ms | 212 KB | found '100800.5000000000', expected '100800.5000000000', error '0.0000000000' |
2 | Incorrect | 0 ms | 212 KB | 1st numbers differ - expected: '0.0000000000', found: '0.5000000000', error = '0.5000000000' |
3 | Halted | 0 ms | 0 KB | - |