Result

WA

Duration

463ms

Code [DL]

freq = {}
x=[]
i=0
while gets()
    for word in $_.split('/\s/')
a=word.split(" ")
    end
x[i]=a 
i=i+1
end
a=x[1][0] - x[0][0]

   printf("%d %d\n",a,x[3][2])

stdin

46 56 08
76 14 09
94 22 12
07 73 79

stdout

stderr

/volume/CODE:11: undefined method `(null)' for "76"(String)

strace