28132023-01-26 13:48:22KristófMicimackó (40 pont)cpp11Wrong answer 32/403ms3656 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);
     cout<<eredmeny;

    return 0;
}
SubtaskSumTestVerdictTimeMemory
base32/40
1Accepted0/03ms1876 KiB
2Wrong answer0/02ms2268 KiB
3Accepted2/22ms2328 KiB
4Accepted2/22ms2536 KiB
5Wrong answer0/22ms2780 KiB
6Accepted2/22ms2816 KiB
7Accepted2/22ms2952 KiB
8Accepted2/22ms3028 KiB
9Accepted2/22ms3032 KiB
10Accepted2/22ms3032 KiB
11Accepted2/22ms3216 KiB
12Wrong answer0/22ms3312 KiB
13Accepted2/22ms3392 KiB
14Accepted2/22ms3516 KiB
15Wrong answer0/22ms3588 KiB
16Accepted2/22ms3592 KiB
17Accepted2/22ms3596 KiB
18Accepted2/22ms3592 KiB
19Wrong answer0/22ms3588 KiB
20Accepted2/22ms3592 KiB
21Accepted2/22ms3656 KiB
22Accepted2/22ms3656 KiB