185422025-10-26 14:05:01VizsimiMicimackó (40 pont)python3Runtime error 0/4016ms3316 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/016ms3316 KiB
2Runtime error0/016ms3068 KiB
3Runtime error0/214ms3136 KiB
4Runtime error0/216ms2868 KiB
5Runtime error0/216ms2868 KiB
6Runtime error0/216ms3092 KiB
7Runtime error0/216ms3052 KiB
8Runtime error0/214ms2936 KiB
9Runtime error0/216ms3056 KiB
10Runtime error0/214ms3056 KiB
11Runtime error0/216ms2892 KiB
12Runtime error0/216ms2868 KiB
13Runtime error0/216ms2984 KiB
14Runtime error0/216ms2964 KiB
15Runtime error0/216ms3060 KiB
16Runtime error0/216ms3076 KiB
17Runtime error0/216ms3092 KiB
18Runtime error0/216ms2956 KiB
19Runtime error0/216ms2868 KiB
20Runtime error0/214ms2868 KiB
21Runtime error0/216ms3080 KiB
22Runtime error0/216ms3108 KiB