23042023-01-10 07:24:48gkataMicimackó (40 pont)cpp17Wrong answer 32/403ms4036 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));

    cout<<aktm;
    return 0;
}
SubtaskSumTestVerdictTimeMemory
base32/40
1Accepted0/03ms1880 KiB
2Wrong answer0/02ms2256 KiB
3Accepted2/22ms2260 KiB
4Accepted2/22ms2420 KiB
5Wrong answer0/22ms2620 KiB
6Accepted2/22ms2636 KiB
7Accepted2/22ms2764 KiB
8Accepted2/22ms3156 KiB
9Accepted2/22ms3232 KiB
10Accepted2/22ms3244 KiB
11Accepted2/22ms3252 KiB
12Wrong answer0/22ms3276 KiB
13Accepted2/22ms3324 KiB
14Accepted2/22ms3432 KiB
15Wrong answer0/22ms3560 KiB
16Accepted2/22ms3704 KiB
17Accepted2/22ms3716 KiB
18Accepted2/22ms3612 KiB
19Wrong answer0/22ms3724 KiB
20Accepted2/22ms3920 KiB
21Accepted2/22ms3932 KiB
22Accepted2/22ms4036 KiB