#include#include#include#include#include#include#include#include#include#include#include#include#include#include#define mp make_pairusing namespace std;const int INF=1e9;map par;string op=“^*/%+-“;inline string T(string s){for(int i=0;ireturn s;}inline string gP(string s){return !par.count(s)?s:par[s]=gP(par[s]); }inline int dvi(int aint b){if(a==0||b==0) return 0;bool x=a<0^b<0;int rt=abs(a)/abs(b);return x?-rt:rt;}inline int mod(int aint b){if(a==0||b==0) return 0;bool x=a<0^b<0;int rt=abs(a)%abs(b);return x?-rt:rt;}inline int mul(int aint b){if(a==0||b=
共有 条评论
评论
共有 条评论