Wednesday, September 12, 2012

1 comment:

  1. In First line there will be an integer T denoting number of test cases. Each of the case will contain 4 integers a1, a2, a3 and n.

    Constraints:

    1 ≤ T ≤ 100
    -300 ≤ a1, a2, a3 ≤ 300
    1 ≤ n ≤ 1000

    ReplyDelete