111282024-07-07 12:57:46probaMicimackó (40 pont)python3Accepted 40/4018ms3192 KiB
# micimacko
#tav =[int(i) for i in '5 11'.split(' ')]
tav =[int(i) for i in input().split(' ')]
#csupor =[int(i) for i in '3 10'.split(' ')]
csupor =[int(i) for i in input().split(' ')]

cs = csupor[0]
for i in range(tav[0]):
    if cs > 0:
        cs -= 1
cs += csupor[1]
for i in range(tav[1]-tav[0]):
    if cs > 0:
        cs -= 1
print(cs)
    
SubtaskSumTestVerdictTimeMemory
base40/40
1Accepted0/018ms2988 KiB
2Accepted0/017ms2916 KiB
3Accepted2/217ms2976 KiB
4Accepted2/217ms3060 KiB
5Accepted2/218ms3192 KiB
6Accepted2/218ms3044 KiB
7Accepted2/217ms2920 KiB
8Accepted2/217ms3064 KiB
9Accepted2/217ms2916 KiB
10Accepted2/217ms2832 KiB
11Accepted2/217ms2916 KiB
12Accepted2/217ms2952 KiB
13Accepted2/217ms2788 KiB
14Accepted2/217ms2916 KiB
15Accepted2/217ms2960 KiB
16Accepted2/217ms2916 KiB
17Accepted2/217ms2916 KiB
18Accepted2/217ms2988 KiB
19Accepted2/217ms2864 KiB
20Accepted2/217ms3064 KiB
21Accepted2/217ms2916 KiB
22Accepted2/217ms2960 KiB