185412025-10-26 14:01:28VizsimiMicimackó (40 pont)python3Runtime error 0/4017ms3284 KiB
bunny_house = int(input())
piglet_house = int(input())
pooh_honey = int(input())
bunny_honey = int(input())

if bunny_house >= pooh_honey:
  pooh_honey = 0
else:
  pooh_honey -= bunny_house

pooh_honey += bunny_honey

if piglet_house - bunny_house >= pooh_honey:
  pooh_honey = 0
else:
  pooh_honey -= piglet_house-bunny_house

print(pooh_honey)
SubtaskSumTestVerdictTimeMemory
base0/40
1Runtime error0/016ms2928 KiB
2Runtime error0/016ms3080 KiB
3Runtime error0/216ms2872 KiB
4Runtime error0/216ms2868 KiB
5Runtime error0/216ms2856 KiB
6Runtime error0/216ms3060 KiB
7Runtime error0/216ms2868 KiB
8Runtime error0/216ms2868 KiB
9Runtime error0/216ms3020 KiB
10Runtime error0/216ms3000 KiB
11Runtime error0/216ms3080 KiB
12Runtime error0/216ms2932 KiB
13Runtime error0/216ms2868 KiB
14Runtime error0/217ms3056 KiB
15Runtime error0/216ms2876 KiB
16Runtime error0/216ms2972 KiB
17Runtime error0/216ms2868 KiB
18Runtime error0/214ms3272 KiB
19Runtime error0/216ms3088 KiB
20Runtime error0/216ms3284 KiB
21Runtime error0/216ms3084 KiB
22Runtime error0/216ms3076 KiB