14952022-11-21 13:58:46teodorbatkaiMicimackó (40 pont)cpp11Wrong answer 0/403ms4000 KiB
#include <bits/stdc++.h>

using namespace std;

int main(){
    int n, m, k, v, x = 0, y = 0;
    cin >> n >> m >> k >> v;
    x = k-n;
    if(x < 0) x = 0;
    y = x + (m - v);
    if(y < 0) y = 0;
    cout << y << endl;
}
SubtaskSumTestVerdictTimeMemory
base0/40
1Wrong answer0/03ms1876 KiB
2Wrong answer0/02ms2068 KiB
3Wrong answer0/22ms2172 KiB
4Wrong answer0/22ms2384 KiB
5Wrong answer0/22ms2592 KiB
6Wrong answer0/22ms2668 KiB
7Wrong answer0/22ms2656 KiB
8Wrong answer0/22ms2768 KiB
9Wrong answer0/22ms2892 KiB
10Wrong answer0/22ms2968 KiB
11Wrong answer0/22ms3092 KiB
12Wrong answer0/22ms3108 KiB
13Wrong answer0/22ms3224 KiB
14Wrong answer0/22ms3176 KiB
15Wrong answer0/22ms3304 KiB
16Wrong answer0/22ms3440 KiB
17Wrong answer0/22ms3596 KiB
18Wrong answer0/22ms3664 KiB
19Wrong answer0/22ms3804 KiB
20Wrong answer0/22ms3880 KiB
21Wrong answer0/22ms3876 KiB
22Wrong answer0/22ms4000 KiB