Submission #598615

# Submission time Handle Problem Language Result Execution time Memory
598615 2022-07-18T15:12:53 Z someone Boarding Passes (BOI22_passes) C++14
0 / 100
0 ms 212 KB
#include <bits/stdc++.h>
#define int long long
using namespace std;

const int N = 2e5 + 42, MOD = 1e9 + 7;

signed main() {
    ios::sync_with_stdio(false);
    cin.tie(0);
    cout.tie(0);

    string str; cin >> str;
    int n = str.size();

    int k = n-n/2;
    if(n % 2 == 0) {
        cout << (k*(k-1))/2.0;
    } else {
        cout << (k*k)/2.0;
    }
}
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 212 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 212 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 212 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 212 KB Output isn't correct
2 Halted 0 ms 0 KB -