#include using namespace std; #define max(a,b) (a)>(b)?(a):(b) #define min(a,b) (a)>(b)?(b):(a) #define rep(i,a,b) for(i=a;i