38092023-03-03 09:20:01MatematikaMicimackó (40 pont)cpp17Wrong answer 32/403ms4376 KiB
#include <iostream>

using namespace std;

int main()
{
    int otthonimez, kapottmez, malacka, nyuszi, eredmeny;
    cin >> nyuszi >> malacka >> otthonimez >> kapottmez;
    eredmeny=otthonimez-nyuszi;
    if(eredmeny<0)
    {
        eredmeny=0;
    }
    eredmeny=eredmeny+kapottmez-(malacka-nyuszi);
    cout << eredmeny;
    return 0;
}
SubtaskSumTestVerdictTimeMemory
base32/40
1Accepted0/03ms1876 KiB
2Wrong answer0/03ms2120 KiB
3Accepted2/23ms2332 KiB
4Accepted2/23ms2572 KiB
5Wrong answer0/23ms2748 KiB
6Accepted2/22ms2956 KiB
7Accepted2/22ms3044 KiB
8Accepted2/22ms3288 KiB
9Accepted2/22ms3492 KiB
10Accepted2/23ms3616 KiB
11Accepted2/22ms3536 KiB
12Wrong answer0/23ms3788 KiB
13Accepted2/22ms3752 KiB
14Accepted2/22ms3752 KiB
15Wrong answer0/22ms3864 KiB
16Accepted2/22ms3864 KiB
17Accepted2/23ms3996 KiB
18Accepted2/22ms4076 KiB
19Wrong answer0/23ms4224 KiB
20Accepted2/23ms4276 KiB
21Accepted2/22ms4356 KiB
22Accepted2/23ms4376 KiB