25302023-01-16 18:18:59szabosamuelMicimackó (40 pont)cpp11Wrong answer 20/403ms4136 KiB
#include <iostream>
using namespace std;

int main()
{
    int x, y;
    cin >> y >> x;
    int k, n;
    cin >> k >> n;
    int ni=0;
    int mi=0;
    x--;
    y--;
    if((k-y)>0) ni=k-y;
    if(((ni+n)-(x-y)>0)) mi=((ni+n)-(x-y));
    cout << mi;


    return 0;
}
SubtaskSumTestVerdictTimeMemory
base20/40
1Accepted0/03ms1752 KiB
2Accepted0/02ms1992 KiB
3Wrong answer0/22ms2196 KiB
4Wrong answer0/22ms2432 KiB
5Accepted2/22ms2400 KiB
6Accepted2/22ms2556 KiB
7Wrong answer0/22ms2524 KiB
8Accepted2/22ms2772 KiB
9Accepted2/22ms2972 KiB
10Wrong answer0/22ms3220 KiB
11Wrong answer0/22ms3284 KiB
12Accepted2/22ms3484 KiB
13Wrong answer0/22ms3692 KiB
14Accepted2/22ms3768 KiB
15Accepted2/22ms3904 KiB
16Wrong answer0/22ms3864 KiB
17Wrong answer0/22ms3988 KiB
18Wrong answer0/22ms4104 KiB
19Accepted2/22ms4132 KiB
20Accepted2/22ms4128 KiB
21Accepted2/22ms4136 KiB
22Wrong answer0/22ms4132 KiB