#include #include #include #include #include #include #include #include #include #include using namespace std; struct aaa{aaa(){cin.tie(nullptr); ios::sync_with_stdio(false); cout<ostream &operator<<(ostream &o,const vector&v){o<<"{";for(int i=0;i<(int)v.size();i++)o<<(i>0?", ":"")<bool chmax(T a,T& b) {if (b> a >> b >> c >> d; int ans = 0; for (int i=a; i<=b; i++) { for (int j=c; j<=d; j++) { if (i != j) ans++; } } cout << ans << endl; }