A painful lesson about the macro uses

rt, aSilly approvederror

I, as a macro with the enthusiasts, max()the function of course defined by the macro

#define MAX(A,B) ((A)>(B)?(A):(B))

So, I am this tree sectional title track makes heavy use of this macro, such as the following:

ans=MAX(ans, query(1, idx[topf[a]], idx[a]));
if(l<=mid) ans=MAX(ans, query(sl, l, r));

So because the macro definition of copy, your time query(sl, l, r)operation becomes twice, and then ...... then burst T 8 points

Afternoon have been trying to find a segment tree, the tree section of the pot


I remembered the last time ans=MAX(ans, ++mp[t])the same way pot

So far macro definition

Guess you like

Origin www.cnblogs.com/santiego/p/11238259.html