23032023-01-10 07:20:24gkataMicimackó (40 pont)cpp17Wrong answer 32/403ms4184 KiB
#include <iostream>

using namespace std;

int x,y,n,m,aktm;

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

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

    cout<<aktm;
    return 0;
}
SubtaskSumTestVerdictTimeMemory
base32/40
1Accepted0/03ms1872 KiB
2Wrong answer0/02ms2064 KiB
3Accepted2/22ms2268 KiB
4Accepted2/22ms2472 KiB
5Wrong answer0/22ms2680 KiB
6Accepted2/22ms2924 KiB
7Accepted2/22ms3128 KiB
8Accepted2/22ms3240 KiB
9Accepted2/22ms3208 KiB
10Accepted2/22ms3288 KiB
11Accepted2/22ms3364 KiB
12Wrong answer0/22ms3368 KiB
13Accepted2/22ms3492 KiB
14Accepted2/22ms3572 KiB
15Wrong answer0/22ms3820 KiB
16Accepted2/22ms3796 KiB
17Accepted2/22ms3776 KiB
18Accepted2/22ms3776 KiB
19Wrong answer0/22ms3900 KiB
20Accepted2/22ms4032 KiB
21Accepted2/22ms4104 KiB
22Accepted2/22ms4184 KiB