Ogro

Problem Link

Solution by mateusgrl39100 pts

Code / Notes

int E, D;
    cin >> E >> D;

    if (E > D) {
        cout << E + D << endl;
    } else {
        cout << 2 * (D - E) << endl;
    }

Last updated 1 month, 3 weeks ago


« Back to problem