14972022-11-21 14:02:01teodorbatkaiMicimackó (40 pont)cpp11Wrong answer 12/403ms4324 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 -= n + m;
    if(v < 0) v = 0;
    cout << v << endl;
}
SubtaskSumTestVerdictTimeMemory
base12/40
1Wrong answer0/03ms1880 KiB
2Accepted0/02ms2116 KiB
3Wrong answer0/22ms2312 KiB
4Wrong answer0/22ms2392 KiB
5Accepted2/22ms2516 KiB
6Wrong answer0/22ms2684 KiB
7Wrong answer0/22ms2880 KiB
8Accepted2/22ms2956 KiB
9Wrong answer0/22ms2960 KiB
10Wrong answer0/22ms3108 KiB
11Accepted2/22ms3096 KiB
12Accepted2/22ms3224 KiB
13Wrong answer0/22ms3368 KiB
14Wrong answer0/22ms3540 KiB
15Accepted2/22ms3544 KiB
16Wrong answer0/22ms3680 KiB
17Wrong answer0/22ms3832 KiB
18Wrong answer0/22ms3880 KiB
19Accepted2/22ms3968 KiB
20Wrong answer0/22ms3960 KiB
21Wrong answer0/22ms4088 KiB
22Wrong answer0/22ms4324 KiB