117572024-11-09 11:13:53balintMicimackó (40 pont)python3Wrong answer 32/4017ms3132 KiB
def main():
    a, b = map(int, input().split())
    c, d = map(int, input().split())
    if a > c:
        print(a + d - b)
    else:
        print(c - a + (a + d - b))


main()
SubtaskSumTestVerdictTimeMemory
base32/40
1Accepted0/016ms3080 KiB
2Wrong answer0/016ms2892 KiB
3Accepted2/217ms2872 KiB
4Accepted2/216ms3016 KiB
5Wrong answer0/216ms3084 KiB
6Accepted2/216ms2980 KiB
7Accepted2/216ms2872 KiB
8Accepted2/217ms2872 KiB
9Accepted2/216ms3132 KiB
10Accepted2/217ms2872 KiB
11Accepted2/216ms2884 KiB
12Wrong answer0/216ms2924 KiB
13Accepted2/216ms2888 KiB
14Accepted2/214ms2872 KiB
15Wrong answer0/217ms2872 KiB
16Accepted2/214ms2872 KiB
17Accepted2/214ms3072 KiB
18Accepted2/214ms3016 KiB
19Wrong answer0/216ms2932 KiB
20Accepted2/216ms3040 KiB
21Accepted2/216ms2996 KiB
22Accepted2/216ms3064 KiB