Result

WA

Duration

622ms

Code [DL]

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

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

stdin

03 02 16
81 54 08
36 98 16
30 05 23

stdout

stderr

Segmentation fault (core dumped)

strace