lancsDec '13Must be something odd about the input data. I kept getting WA (after some TLE's) using readln(k,low,high) but got AC after changing to read(k,low,high).