14982022-11-21 14:03:49teodorbatkaiMicimackó (40 pont)cpp11Wrong answer 12/403ms4228 KiB
#include <bits/stdc++.h>

using namespace std;

int main(){
    int n, m, k, v;
    cin >> n >> m >> k >> v;
    k -= n;
    if(n < 0) n = 0;
    v += k;
    v -= m;
    if(v < 0) v = 0;
    cout << v << endl;
}
SubtaskSumTestVerdictTimeMemory
base12/40
1Wrong answer0/03ms1876 KiB
2Accepted0/02ms2124 KiB
3Wrong answer0/22ms2272 KiB
4Wrong answer0/22ms2508 KiB
5Accepted2/22ms2680 KiB
6Wrong answer0/22ms2924 KiB
7Wrong answer0/22ms3128 KiB
8Accepted2/22ms3232 KiB
9Wrong answer0/22ms3304 KiB
10Wrong answer0/22ms3264 KiB
11Accepted2/22ms3388 KiB
12Accepted2/22ms3596 KiB
13Wrong answer0/22ms3844 KiB
14Wrong answer0/22ms3904 KiB
15Accepted2/22ms3876 KiB
16Wrong answer0/22ms4008 KiB
17Wrong answer0/22ms4080 KiB
18Wrong answer0/22ms4196 KiB
19Accepted2/22ms4076 KiB
20Wrong answer0/22ms4084 KiB
21Wrong answer0/22ms4076 KiB
22Wrong answer0/22ms4228 KiB