tan(A+B)=(tanA+tanB)/(1-tanAtanB)
所以tanA+tanB=1-tanAtanB,tanA+tanB+tanAtanB=1
(1+tanA)(1+tanB)=1+tanA+tanB+tanAtanB=2