设对于张三来说,胜a局,平b局,负c局
则 a + b + c = 12
25 + 3a + b - 2c = 40
25 - 2a + b + 3c = 30
三式联立求解可得
a = 3
b = 8
c = 1
答:张三负了1局,胜了3局.