#include #define foreach(i, v) for(__typeof((v).begin()) i = (v).begin(); i != (v).end(); ++ i) #define BETWEEN(a, x, b) (a<=x&&x>s; int res=0; for(int i=0;i