23052023-01-10 07:28:30gkataMicimackó (40 pont)cpp17Accepted 40/403ms4608 KiB
#include <iostream>

using namespace std;

int x,y,n,m,aktm;

int main()
{
    cin>>y>>x>>n>>m;

    if(y>n) aktm=0;
        else aktm=n-y;
    aktm=aktm+(m-(x-y));

    if(aktm<0) aktm=0;
    cout<<aktm;
    return 0;
}
SubtaskSumTestVerdictTimeMemory
base40/40
1Accepted0/03ms2148 KiB
2Accepted0/02ms2308 KiB
3Accepted2/22ms2520 KiB
4Accepted2/22ms2556 KiB
5Accepted2/22ms2620 KiB
6Accepted2/22ms2744 KiB
7Accepted2/22ms2884 KiB
8Accepted2/22ms3116 KiB
9Accepted2/22ms3284 KiB
10Accepted2/22ms3328 KiB
11Accepted2/22ms3564 KiB
12Accepted2/22ms3768 KiB
13Accepted2/22ms3840 KiB
14Accepted2/22ms3848 KiB
15Accepted2/22ms4088 KiB
16Accepted2/22ms4284 KiB
17Accepted2/22ms4256 KiB
18Accepted2/22ms4408 KiB
19Accepted2/22ms4516 KiB
20Accepted2/22ms4512 KiB
21Accepted2/22ms4480 KiB
22Accepted2/22ms4608 KiB