# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
614331 | 2022-07-31T01:52:06 Z | Plurm | Boarding Passes (BOI22_passes) | C++11 | 0 ms | 304 KB |
#include <bits/stdc++.h> using namespace std; char s[100005]; double solve(int n) { double ans = (((n + 1) / 4 - 1) * (n + 1) + 1) / 2.0; return ans; } 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 | 304 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: '0.5000000000', error = '0.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: '0.5000000000', error = '0.5000000000' |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 0 ms | 304 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 | - |