Submission #993723

# Submission time Handle Problem Language Result Execution time Memory
993723 2024-06-06T10:38:04 Z amine_aroua Boarding Passes (BOI22_passes) C++17
0 / 100
0 ms 348 KB
#include<bits/stdc++.h>
//#pragma GCC optimize("O3")
//#pragma GCC optimize("unroll-loops")
using namespace std;
#define int long long
#define pb push_back
#define fore(i , n) for(int i = 0 ; i<n;i++)
#define forr(i , x , y) for(int i = x ; i <= y; i++)
#define forn(i , x , y) for(int i = x ; i >= y; i--)
#define nl '\n'
signed main() {
    ios::sync_with_stdio(0);
    cin.tie(0);
    cout.tie(0);
//    double n;
//    cin>>n;
    string s;
    cin>>s;
    double n = (double)s.size();
    cout<<fixed<<setprecision(5);
    cout<<(n - 1)*(n-1) / 8.0<<nl;
}

# Verdict Execution time Memory Grader output
1 Correct 0 ms 348 KB found '100800.5000000000', expected '100800.5000000000', error '0.0000000000'
2 Correct 0 ms 348 KB found '0.0000000000', expected '0.0000000000', error '-0.0000000000'
3 Incorrect 0 ms 348 KB 1st numbers differ - expected: '0.0000000000', found: '0.1250000000', error = '0.1250000000'
4 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 348 KB 1st numbers differ - expected: '1.0000000000', found: '3.1250000000', error = '2.1250000000'
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 348 KB 1st numbers differ - expected: '1.0000000000', found: '3.1250000000', error = '2.1250000000'
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 0 ms 348 KB found '100800.5000000000', expected '100800.5000000000', error '0.0000000000'
2 Correct 0 ms 348 KB found '0.0000000000', expected '0.0000000000', error '-0.0000000000'
3 Incorrect 0 ms 348 KB 1st numbers differ - expected: '0.0000000000', found: '0.1250000000', error = '0.1250000000'
4 Halted 0 ms 0 KB -