#include #include #include #include #include #include #include ///////// #define REP(i, x, n) for(int i = x; i < n; i++) #define rep(i,n) REP(i,0,n) #define P(p) cout<<(p)<>s; int op[4]; int v[4]; rep(i,4){ op[i] = 0; v[i] = 0; } int OPcount = 0; int count = 0; bool flag = false; int i=0; if(s[0] == '+'){ op[OPcount] = 1; ++OPcount; ++i; } else if(s[0] == '-'){ op[OPcount] = -1; ++OPcount; ++i; }else{ op[OPcount] = 1; ++OPcount; } for(i;i