28172023-01-26 13:50:14KristófMicimackó (40 pont)cpp11Wrong answer 4/403ms4268 KiB
#include <iostream>

using namespace std;

int main()
{
     int n, k;
     int x,y;
     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);
     
     if(eredmeny>0)
        eredmeny=0;
     cout<<eredmeny;

    return 0;
}
SubtaskSumTestVerdictTimeMemory
base4/40
1Wrong answer0/03ms1876 KiB
2Wrong answer0/02ms1980 KiB
3Wrong answer0/22ms2180 KiB
4Wrong answer0/22ms2388 KiB
5Wrong answer0/22ms2460 KiB
6Wrong answer0/22ms2588 KiB
7Wrong answer0/22ms2668 KiB
8Accepted2/22ms2908 KiB
9Wrong answer0/22ms2884 KiB
10Wrong answer0/22ms2996 KiB
11Accepted2/22ms3128 KiB
12Wrong answer0/22ms3124 KiB
13Wrong answer0/22ms3128 KiB
14Wrong answer0/22ms3252 KiB
15Wrong answer0/22ms3328 KiB
16Wrong answer0/22ms3460 KiB
17Wrong answer0/22ms3664 KiB
18Wrong answer0/22ms3736 KiB
19Wrong answer0/22ms3864 KiB
20Wrong answer0/22ms3940 KiB
21Wrong answer0/22ms4196 KiB
22Wrong answer0/22ms4268 KiB