# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
614330 | 2022-07-31T01:51:14 Z | Plurm | Boarding Passes (BOI22_passes) | C++11 | 1 ms | 212 KB |
#include <bits/stdc++.h> using namespace std; char s[100005]; double solve(int n) { double ans = ((n / 4) * (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 | 1 ms | 212 KB | found '100800.5000000000', expected '100800.5000000000', error '0.0000000000' |
2 | Incorrect | 1 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 | 1 ms | 212 KB | 1st numbers differ - expected: '1.0000000000', found: '4.0000000000', error = '3.0000000000' |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 1 ms | 212 KB | 1st numbers differ - expected: '1.0000000000', found: '4.0000000000', error = '3.0000000000' |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 1 ms | 212 KB | found '100800.5000000000', expected '100800.5000000000', error '0.0000000000' |
2 | Incorrect | 1 ms | 212 KB | 1st numbers differ - expected: '0.0000000000', found: '0.5000000000', error = '0.5000000000' |
3 | Halted | 0 ms | 0 KB | - |