Please paste other I/O....especially those with t=0....uvatoolkit give me outuput very odd!! I'm going crazy...my program seems to work well...but the compiler tell me...WA!!!

For example...for the input:
0 2 0 0
0 5 0 0 0 0 1
What is the correct output?