• + 11 comments

    C++: No need for floats

    int main() {
        uint32_t a, b;
        cin >> b >> a;
        cout << 2 * a / b + bool((2 * a) % b);   
        return 0;
    }