Submission #1053474

# Submission time Handle Problem Language Result Execution time Memory
1053474 2024-08-11T12:21:22 Z sofijavelkovska Boarding Passes (BOI22_passes) C++17
0 / 100
1 ms 344 KB
#include <bits/stdc++.h>
using namespace std;

int main()
{
    ios_base::sync_with_stdio(0);
    cin.tie(0);

    string s;
    cin >> s;
    int n=s.size();
    int x=n/2;
    int y=(n+1)/2;
    cout << (double)x*(x-1)/4+(double)y*(y-1)/4;

    return 0;
}
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 344 KB 1st numbers differ - expected: '100800.5000000000', found: '100800.0000000000', error = '0.0000049603'
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 344 KB 1st numbers differ - expected: '1.0000000000', found: '3.0000000000', error = '2.0000000000'
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 344 KB 1st numbers differ - expected: '1.0000000000', found: '3.0000000000', error = '2.0000000000'
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 344 KB 1st numbers differ - expected: '100800.5000000000', found: '100800.0000000000', error = '0.0000049603'
2 Halted 0 ms 0 KB -