This problem is really boring.
You are given a number sequence S which contain n integers and m queries, each time i will give your two integers id1 and id2, you need to tell me whether i can get S[id1] + S[id2] from the n integers.
1 5 3 3 4 2 1 3 1 2 3 4 4 5
Case 1: No Yes Yes
无
Alex@NBUT