1742021-02-03 22:02:45ncsMicimackó (40 pont)nimWrong answer 0/402ms2156 KiB
import strscans
var y,x:int; discard scanf(stdin.readLine(),"$i$s$i",y,x)
echo "y: ",y, "x: ",x
var k,n:int; discard scanf(stdin.readLine(),"$i$s$i",k,n)
echo "k: ",k, "n: ",n

max(max(0, k-y)+n-(x-y), 0).echo
SubtaskSumTestVerdictTimeMemory
base0/40
1Accepted0/02ms2012 KiB
2Accepted0/01ms1916 KiB
3Wrong answer0/21ms2020 KiB
4Wrong answer0/21ms1932 KiB
5Wrong answer0/21ms2024 KiB
6Wrong answer0/21ms1984 KiB
7Wrong answer0/21ms2000 KiB
8Wrong answer0/21ms1968 KiB
9Wrong answer0/21ms2088 KiB
10Wrong answer0/21ms1956 KiB
11Wrong answer0/21ms2072 KiB
12Wrong answer0/21ms2016 KiB
13Wrong answer0/21ms2024 KiB
14Wrong answer0/21ms1976 KiB
15Wrong answer0/21ms2036 KiB
16Wrong answer0/21ms2032 KiB
17Wrong answer0/21ms2036 KiB
18Wrong answer0/21ms2156 KiB
19Wrong answer0/21ms2088 KiB
20Wrong answer0/21ms2088 KiB
21Wrong answer0/21ms2060 KiB
22Wrong answer0/21ms2064 KiB