假设 node a,bnode \ a, bnode a,b,已重载运算符,写成
(a < b ? b : a)
比
max(a, b)
快很多。
如果 a,ba,ba,b 不是结构体的话,也会这样吗?而且为啥会有这样的差距?
上面写法,AC
下面写法,TLE