25382023-01-16 18:33:03szabosamuelMicimackó (40 pont)cpp11Accepted 40/403ms3864 KiB
#include <iostream>
using namespace std;

int main()
{
    int x, y;
    cin >> y >> x;
    int k, n;
    cin >> k >> n;
    int ni=0;
    int mi=0;
   
    if((k-y)>0) ni=k-y;
    if(((ni+n)-(x-y)>0)) mi=((ni+n)-(x-y));
    cout << mi;


    return 0;
}
SubtaskSumTestVerdictTimeMemory
base40/40
1Accepted0/03ms1872 KiB
2Accepted0/02ms1972 KiB
3Accepted2/22ms2168 KiB
4Accepted2/22ms2368 KiB
5Accepted2/22ms2616 KiB
6Accepted2/22ms2780 KiB
7Accepted2/22ms3020 KiB
8Accepted2/22ms3228 KiB
9Accepted2/22ms3264 KiB
10Accepted2/22ms3264 KiB
11Accepted2/22ms3380 KiB
12Accepted2/22ms3264 KiB
13Accepted2/22ms3260 KiB
14Accepted2/22ms3552 KiB
15Accepted2/22ms3512 KiB
16Accepted2/22ms3624 KiB
17Accepted2/22ms3544 KiB
18Accepted2/22ms3656 KiB
19Accepted2/22ms3620 KiB
20Accepted2/22ms3864 KiB
21Accepted2/22ms3812 KiB
22Accepted2/22ms3816 KiB