173672025-07-15 10:21:46algoproMicimackó (40 pont)cpp17Wrong answer 4/401ms512 KiB
// UUID: 564fc15b-e401-4caf-98de-ea021a552db3
#include <bits/stdc++.h>
using namespace std;

int main() {
    int Y, X;
    int K, N;

    cin >> Y >> X;
    cin >> K >> N;

    K += N;

    int d = X - Y;
    K -= min(K, d);

    cout << K << endl;

    return 0;
}
SubtaskSumTestVerdictTimeMemory
base4/40
1Wrong answer0/01ms316 KiB
2Wrong answer0/01ms316 KiB
3Wrong answer0/21ms512 KiB
4Wrong answer0/21ms316 KiB
5Wrong answer0/21ms500 KiB
6Wrong answer0/21ms316 KiB
7Wrong answer0/21ms316 KiB
8Wrong answer0/21ms316 KiB
9Wrong answer0/21ms316 KiB
10Wrong answer0/21ms316 KiB
11Wrong answer0/21ms508 KiB
12Wrong answer0/21ms508 KiB
13Wrong answer0/21ms316 KiB
14Accepted2/21ms500 KiB
15Wrong answer0/21ms512 KiB
16Wrong answer0/21ms316 KiB
17Wrong answer0/21ms316 KiB
18Wrong answer0/21ms316 KiB
19Wrong answer0/21ms508 KiB
20Accepted2/21ms316 KiB
21Wrong answer0/21ms316 KiB
22Wrong answer0/21ms316 KiB