LG 2522 [HAOI2011]Problem-b

zcmimi at 
查看原题'" class='mdui-btn mdui-btn-raised'>点击加载点击跳转把题目强行转换为[POI2007]ZAP-Queries$Ans((1,b),(1,d))-Ans((1,b),(1,c-1))-Ans((1,a-1),(1,d))+Ans((1,a-1),(1,c-1))$$$f=\sum{i=1}^{a}\sum{j=1}^{b}[gcd(i,j)=d] \f=\sum{i=1}^{\left \lfloor \frac ad \right \rfloor} \sum{j=1}^{\left \lfloor \frac bd \right \rfloor} [……