Result

WA

Duration

501ms

Code [DL]

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

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

stdin

32 39 45
63 05 51
77 79 87
25 60 72

stdout

stderr

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

strace