28152023-01-26 13:49:04DalmMicimackó (40 pont)cpp11Wrong answer 32/403ms3908 KiB
#include <iostream>

using namespace std;

int main()
{
   int y,x;
   int k,n;

   cin>>y;
   cin>>x;
   cin>>k;
   cin>>n;

   int eredmeny;
   eredmeny = k - y;
   if(eredmeny < 0)
    eredmeny=0;

   eredmeny = eredmeny+n;
   eredmeny = eredmeny - (x-y);

   cout<<eredmeny;





























    return 0;
}
SubtaskSumTestVerdictTimeMemory
base32/40
1Accepted0/03ms1876 KiB
2Wrong answer0/02ms2072 KiB
3Accepted2/22ms2272 KiB
4Accepted2/22ms2348 KiB
5Wrong answer0/22ms2480 KiB
6Accepted2/22ms2680 KiB
7Accepted2/22ms2884 KiB
8Accepted2/22ms3128 KiB
9Accepted2/22ms3164 KiB
10Accepted2/22ms3160 KiB
11Accepted2/22ms3312 KiB
12Wrong answer0/22ms3356 KiB
13Accepted2/22ms3564 KiB
14Accepted2/22ms3676 KiB
15Wrong answer0/22ms3672 KiB
16Accepted2/22ms3668 KiB
17Accepted2/22ms3668 KiB
18Accepted2/22ms3672 KiB
19Wrong answer0/22ms3676 KiB
20Accepted2/22ms3788 KiB
21Accepted2/22ms3780 KiB
22Accepted2/22ms3908 KiB