I strongly believe the first result of DICTSUB is a result of cheating. I made an empty program that just read the input, and it took me about 0.20s, there's no way you can do this problem in 0.00. Since there are only 10 test cases, he could have guessed the output one answer by submission. I suggest to add more testcases to this problem and rejudge.