답안 #993746

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
993746 2024-06-06T11:00:23 Z amine_aroua Boarding Passes (BOI22_passes) C++17
0 / 100
0 ms 452 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;
    long double n = (double)s.size();
    cout<<fixed<<setprecision(5);
    cout<<(floor(n / 2) * floor(n / 2))/2<<nl;
}

# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 348 KB found '100800.5000000000', expected '100800.5000000000', error '0.0000000000'
2 Correct 0 ms 452 KB found '0.0000000000', expected '0.0000000000', error '-0.0000000000'
3 Incorrect 0 ms 348 KB 1st numbers differ - expected: '0.0000000000', found: '0.5000000000', error = '0.5000000000'
4 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Incorrect 0 ms 452 KB 1st numbers differ - expected: '1.0000000000', found: '4.5000000000', error = '3.5000000000'
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Incorrect 0 ms 452 KB 1st numbers differ - expected: '1.0000000000', found: '4.5000000000', error = '3.5000000000'
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 348 KB found '100800.5000000000', expected '100800.5000000000', error '0.0000000000'
2 Correct 0 ms 452 KB found '0.0000000000', expected '0.0000000000', error '-0.0000000000'
3 Incorrect 0 ms 348 KB 1st numbers differ - expected: '0.0000000000', found: '0.5000000000', error = '0.5000000000'
4 Halted 0 ms 0 KB -