#include <iostream>
#include <stack>
#include <cmath>
#include <sstream>

using namespace std;

bool isoptr(char ch) {
 if(ch == '+' || ch == '-' || ch == '*' || ch ==  '/' || ch == '^' || ch == 's' || ch == 'c' || ch == 'l' || ch == 'n') return true;
 else return false;
}

bool isopnd(string s) {
 stringstream temp;
 double num;
 char ch;
 temp << s;
 if(!(temp >> num)) return false; // 若无法转换,则字符串不是数据
 else return true;
}

double convert(string s) {
 double sum = 0;
 stringstream temp;
 temp << s;
 temp >> sum;
 return sum;
}

string convert_str(double num) {
 stringstream temp;
 string str;
 temp << num;
 temp >> str;
 return str;
}

int optrpri(string s)
{
 switch(s[0]) {
  case '+' : return 1;
  case '-' : return 1;
  case '*' : return 2;
  case '/' : return 2;
  case '^' : return 3;
  case 's' : return 4;
  case 'c' : return 4;
  case 'l' : return 4;
 }
 
}

struct Bit {
 string data;
 Bit* left = NULL;
 Bit* right = NULL;
};

Bit* ReadExpr(string exp) {
 stack <Bit*> datast;
 int cnt = exp.length()-1;
 while(cnt >= 0) {
  if(exp[cnt] == ' ') cnt--;
  else if(!isoptr(exp[cnt])) {
   int i = cnt;
   string temp;
   while(!isoptr(exp[i]) && i >= 0 && exp[i] != ' ') {
    temp = exp[i] + temp;
    i--;
   }
   if(exp[i] == '-') {
    temp = exp[i] + temp;
    cnt = i-1;
   } else cnt = i;
   Bit* p = new Bit;
   p->data = temp;
   datast.push(p);
  } else if(exp[cnt] == 'n' || exp[cnt] == 's') {
   if(exp[cnt-1] == 'l' && exp[cnt] == 'n') {
    Bit* p = new Bit;
    p->data = "ln";
    if(!datast.empty()) {
     p->right = datast.top();
     datast.pop();
    }
    datast.push(p);
    cnt -= 2;
   } else if(exp[cnt-2] == 's' && exp[cnt-1] == 'i' && exp[cnt] == 'n') {
    Bit* p = new Bit;
    p->data = "sin";
    if(!datast.empty()) {
     p->right = datast.top();
     datast.pop();
    }
    datast.push(p);
    cnt -= 3;
   } else if(exp[cnt-2] == 'c' && exp[cnt-1] == 'o' && exp[cnt] == 's') {
    Bit* p = new Bit;
    p->data = "cos";
    if(!datast.empty()) {
     p->right = datast.top();
     datast.pop();
    }
    datast.push(p);
    cnt -= 3;
   }
  } else {
   Bit* p = new Bit;
   p->data = exp[cnt];
   if(!datast.empty()) {
    p->left = datast.top();
    datast.pop();
   }
   if(!datast.empty()) {
    p->right = datast.top();
    datast.pop();
   }
   datast.push(p);
   cnt--;
  }
 }
 Bit* root = new Bit;
 root = datast.top();
 datast.pop();
 return root;
};

void WriteExpr(Bit* root) { // 中序遍历
 if(root) {
  if(root->left) {
   if((!isopnd(root->left->data) && (optrpri(root->data) > optrpri(root->left->data))) || root->left->data[0] == '^') {
    cout << " (";
    WriteExpr(root->left);
    cout << " )";
   } else WriteExpr(root->left);
  }
  
  cout << " " << root->data;
  
  if(root->right) {
   if((!isopnd(root->right->data) && (optrpri(root->data) >= optrpri(root->right->data))) || root->right->data[0] == '^') {
    cout << " (";
    WriteExpr(root->right);
    cout  << " )";
   } else WriteExpr(root->right);
  }
 }
}

void Assign(Bit* root, char V, int c = 0) {
 if(root) {
  char ch = root->data[0];
  if(ch == V) {
   if(c >= 0) {
    char temp = c + '0';
    root->data = temp;
   } else {
    char temp = (0-c) + '0';
    string str = "-" + temp;
    root->data = str;
   }
  }
  Assign(root->left, V, c);
  Assign(root->right, V, c);
 } 
}

double Value(Bit* root){
 if(root) {
  char ch = root->data[0];
  if(!root->left && !root->right && isopnd(root->data)) return convert(root->data);
  else {
   switch (ch) {
    case '+' : return Value(root->left) + Value(root->right);
    case '-' : return Value(root->left) - Value(root->right);
    case '*' : return Value(root->left) * Value(root->right);
    case '/' : return Value(root->left) / Value(root->right);
    case '^' : return pow(Value(root->left), Value(root->right));
    case 's' : return sin(Value(root->right));
    case 'c' : return cos(Value(root->right));
    case 'l' : return log(Value(root->right));
   }
  }
 }
}

Bit* CompoundExpr(char optr, Bit* root1, Bit* root2){
 if(root1 && root2) {
  Bit* root = new Bit;
  root->data = optr;
  root->left = root1;
  root->right = root2;
  return root;
 } else {
  return NULL;
 }
}

Bit* Diff(Bit* root, char V) {
 if(root) {
  if(isopnd(root->data) || (!isopnd(root->data) && !isoptr(root->data[0]) && root->data[0] != V)) {
   root->data = "0";
   return root;
  } else if(root->data[0] == V) {
   root->data = "1";
   return root;
  } else if(isoptr(root->data[0]) && root->right) {
   char ch = root->data[0];
   switch (ch) {
    case '+':
     {
      Bit* l = new Bit;
      *l = *(root->left);
      Bit* r = new Bit;
      *r = *(root->right);
      return CompoundExpr(ch, Diff(l, V), Diff(r, V));
     }
    case '-':
     {
      Bit* l = new Bit;
      *l = *(root->left);
      Bit* r = new Bit;
      *r = *(root->right);
      return CompoundExpr(ch, Diff(l, V), Diff(r, V));
     }
    case '*':
     {
      Bit* l = new Bit;
      *l = *(root->left);
      Bit* r = new Bit;
      *r = *(root->right);
      return CompoundExpr('+', CompoundExpr('*', root->left , Diff(r , V)),
        CompoundExpr('*', Diff(l, V),  root->right));
     }
    case '/':
     {
      Bit* l = new Bit;
      *l = *(root->left);
      Bit* r = new Bit;
      *r = *(root->right);
      return CompoundExpr('-', CompoundExpr('/', Diff(l, V) , root->right),
        CompoundExpr('*',
        CompoundExpr('/', root->left, CompoundExpr('*', root->right, root->right )),  Diff(r, V)));
     }
    case '^':
     {
      Bit* l = new Bit;
      *l = *(root->left);
      Bit* r = new Bit;
      *r = *(root->right);
      
      Bit* p = new Bit;
      p->data = "ln";
      p->right = root->left;
      
      return CompoundExpr('*', CompoundExpr('^', root->left, root->right),
       CompoundExpr('+', CompoundExpr('*', Diff(r, V), p),
       CompoundExpr('/', CompoundExpr('*', root->right, Diff(l, V)), root->left)));
     }
    case 's':
     {
      Bit* p = new Bit;
      *p = *root;
      Bit* r = new Bit;
      *r = *(root->right);
      p->data = "cos";
      return CompoundExpr('*', Diff(r, V), p);
     }
    case 'c':
     {
      Bit* p = new Bit;
      *p = *root;
      Bit* r = new Bit;
      *r = *(root->right);
      p->data = "sin";
      Bit* q = new Bit;
      q->data = "-1";
      return CompoundExpr('*', CompoundExpr('*', q, Diff(r, V)), p);
     }
    case 'l':
     {
      Bit* r = new Bit;
      *r = *(root->right);
      return CompoundExpr('/', Diff(r, V), root->right);
     }
   }
  }
 }
}
 
Bit* MergeConst(Bit* root) {
 if(root) {
  if(!isopnd(root->data) && root->left && root->right && isopnd(root->left->data) && isopnd(root->right->data)) {
   switch(root->data[0]) {
    case '+' :
     {
      root->data = convert_str(convert(root->left->data) + convert(root->right->data));
      root->left = NULL;
      root->right = NULL;
      return root;
     }
    case '-' :
     {
      root->data = convert_str(convert(root->left->data) - convert(root->right->data));
      root->left = NULL;
      root->right = NULL;
      return root;
     }
    case '*' :
     {
      root->data = convert_str(convert(root->left->data) * convert(root->right->data));
      root->left = NULL;
      root->right = NULL;
      return root;
     }
    case '/' :
     {
      root->data = convert_str(convert(root->left->data) / convert(root->right->data));
      root->left = NULL;
      root->right = NULL;
      return root;
     }
    case '^' :
     {
      root->data = convert_str(pow(convert(root->left->data), convert(root->right->data)));
      root->left = NULL;
      root->right = NULL;
      return root;
     }
   }
  } else {
   Bit* l = NULL;
   Bit* r = NULL;
   if(root->left) l = MergeConst(root->left);
   if(root->right) r = MergeConst(root->right);
   if(r&&l) {
    root->left = l;
    root->right = r;
    return MergeConst(root);
   } else return root;
  }
 }
}

int main()
{
 string s;
 
 while(getline(cin, s) && s != "") {
  Bit* root = ReadExpr(s);
  WriteExpr(root);
  cout << endl;
//  cout << Value(root) << endl;
  Bit* p = Diff(root, 'x');
  WriteExpr(root);
  cout << endl;
  WriteExpr(p);
  //cout << endl;
//  Assign(root, 'x', 3);
//  cout << Value(root) << endl;
//  Bit* temp = new Bit;
//  temp = CompoundExpr('/', root, root);
//  WriteExpr(temp);
//  cout << endl;
//  cout << Value(temp) << endl;

//Bit* q = MergeConst(root);
  //WriteExpr(MergeConst(Diff(ReadExpr(s),'x')));
  cout << endl;
 }
}

/*

#include<iostream>
#include<string>
#include<cstdio>
#include<stdio.h>
#include<stdlib.h>
#include<stack>
#include<sstream>
#include<cmath>

using namespace std;

struct Node{                                                                                                            //构建一棵树

string data;
     Node *lchild=NULL;
  Node *rchild=NULL;

};
 
bool CharToNum(string s);
Node* CompoundExpr(char P, Node* E1, Node* E2);
double DoCharToNum(string s);
int Judge(char s);
int find(Node* root);
Node* CreatTree(string s);
Node* Merge(Node* root);
Node* MergeConst(Node* root);
void show(Node* root);
double GetValue(Node* root);
double Assign(string s,int a);
int error(string s);
string NumToStr(double num);
Node* Diff(Node* root, char V);

bool CharToNum(string s) {                                                                                               //判断字符串是否可以转化为数据
 stringstream temp;
 double num;
 temp << s;
 if(!(temp >> num)) return false;                                                                                     // 若无法转换,则字符串不是数据
 else return true;
}

string NumToStr(double num){                                                                                             //将数据转化为字符串
 stringstream t;
 string s;
 t<<num;
 t>>s;
 return s;
}
double DoCharToNum(string s){                                                                                            //将字符串转化为数据
 stringstream t;
 double num;
 t<<s;
 t>>num;
 return num;
 
}

int Judge(char s)                                                                                                       //对运算符进行分类并且判断
{
 switch(s) {
  case '+' : return 1;
  case '-' : return 1;
  case '*' : return 2;
  case '/' : return 2;
  case '^' : return 2;
  case 's' : return 4;
  case 'n' : return 4;
  case 'g' : return 4;
  case ' ' : return -1;
  case 'x' : return 3;
  case 'X' : return 3;
        default  : return 5;
        
 }
 
}

int Jud(string s){                                                                                                      //对于笼统的区分有用字符和无用字符
    if(s[0]=='+'||s[0]=='-'||s[0]=='*'||s[0]=='/'||s[0]=='s'||s[0]=='c'||s[0]=='l'||s[0]=='n') return 1;
 else return 0;
}

int error(string s){                                                                                                    //判断输入字符串是否是正确的
    int l = s.length();
    int count = 0;
 for(int i=0; i<l;i++){
  if(s[i]=='-') {                                                                                                 //对于空格的处理,不计数
   while(Judge(s[i+1])==5){
    i++;
   }
  }
  if(Judge(s[i])==5){                                                                                             //对于一串数字的处理,算作一个数
   while(Judge(s[i+1])==5){
    i++;
   }
  }
  if(s[i]=='c'||s[i]=='l'||s[i]=='s') i = i + 3;                                                                 //对于sin cos log 的处理
  if(Judge(s[i])==1 || Judge(s[i])==2)
       count--;
  if(Judge(s[i])==3 || Judge(s[i])==5)
       count++;
 } 
 if(count!=1){                                                                                                     //如果数字不是比二元运算符多一个,则出错
  cout<<"您输入的式子有问题,请确认后重新输入  ";
  return 0;
 }
 else return 1;
}

Node* CompoundExpr(char P, Node* E1, Node* E2){                                                                      //两棵树相加,新增加一个根,把两棵树挂上去就好
 
 if(E1 && E2) {
  Node* root = new Node;
  char t=P;
     switch(t){
       case '+' : root->data = "+"; break;
       case '-' : root->data = "-"; break;
          case '*' : root->data = "*"; break;
          case '/' : root->data = "/"; break;
       case '^' : root->data = "^"; break;
     }
  root->lchild = E1;
  root->rchild = E2;
  return root;
 }
 else return NULL;
 
}

Node* CreatTree(string s){                                                                                          //把多项式建立成二叉树
 stack<Node*> store;
 int len = s.length()-1;
 
 while(len>=0){                                                                                                  //遍历字符串
  
     if(s[len]==' ') {
   len--;                                                                                                 //跳过空格
  }
  else if(Judge(s[len])==1||Judge(s[len])==2){                                                              //如果是字符,运算符
   Node* r = new Node;
   string b="";
   b = b + s[len];
   len--;
   r->data = b;
   if(!s.empty()){                                                                                       //将树节点栈中两个元素接在一个新节点上
    r->lchild = store.top();
    store.pop();
   }
   if(!s.empty()){
    r->rchild = store.top();
    store.pop();
   }
   store.push(r);                                                                                       //将新节点放回栈内
  }
  else if(Judge(s[len])==4){                                                                        //若是数字,直接作为一个节点放入栈中
   Node* r = new Node;
   string b="";
   for(int i=len;i>=len-2;i--){
    b = s[i] + b;
   }
   len = len - 3;
   r->data = b;
   if(!s.empty()){
    r->rchild = store.top();
    store.pop();
   } 
   store.push(r);
  }
  else if(Judge(s[len])==5){                                                                                //对于未知数的处理,也是直接入栈,但是不具备多位数,所以与数字分开表示
   
   string t="";
   t += s[len];
   len--;
   while(Judge(s[len])==5 && len!=-1){
    t = s[len] + t;
    len --;
   }
   
   Node* a = new Node;
      a->data = t;
      store.push(a);
   
         if(s[len]=='-') {                                                                                     //+ -5 7有负数
                Node* c = new Node;
                c->data = "0";
                store.push(c);
         }

}
  else if(Judge(s[len])==3 && len!=-1){
   
   string t="";
   t += s[len];
   len--;
   Node* a = new Node;
      a->data = t;
      store.push(a); 
  }
 }
 Node* root = new Node;
 root = store.top();
 store.pop();
 return root;                                                                                                //返回一个最上层的节点,可以代表整棵树,作为一个根

}

Node* Diff(Node* root, char V) {                                                                               //求导
 if(root) {
  if(CharToNum(root->data) || (! CharToNum(root->data) && Jud(root->data)==0  && root->data[0] != V)) {
   root->data = "0";                                                                                  // 数字求导返回0;
   return root;
  } else if(root->data[0] == V) {
   root->data = "1";                                                                                 //单独的x变量返回1;
   return root;
  } else if(Jud(root->data)==1 && root->rchild) {                                                       //对于F(x) + - / * G(x)处理
   char ch = root->data[0];
   switch (ch) {
    case '+':
     {
      Node* l = new Node;
      *l = *(root->lchild);
      Node* r = new Node;
      *r = *(root->rchild);
      return CompoundExpr(ch, Diff(l, V), Diff(r, V));                                      //分别求导
     }
    case '-':
     {
      Node* l = new Node;
      *l = *(root->lchild);
      Node* r = new Node;
      *r = *(root->rchild);
      return CompoundExpr(ch, Diff(l, V), Diff(r, V));
     }
    case '*':
     {
      Node* l = new Node;
      *l = *(root->lchild);
      Node* r = new Node;
      *r = *(root->rchild);
      return CompoundExpr('+', CompoundExpr('*', root->lchild , Diff(r , V)),                 //分部积分
        CompoundExpr('*', Diff(l, V),  root->rchild));
     }
    case '/':
     {
      Node* l = new Node;
      *l = *(root->lchild);
      Node* r = new Node;
      *r = *(root->rchild);
      return CompoundExpr('-', CompoundExpr('/', Diff(l, V) , root->rchild),CompoundExpr('*', 
         CompoundExpr('/', root->lchild, CompoundExpr('*', root->rchild, root->rchild )),  Diff(r, V)));
     }                                                                                             //对于除法 ,加负号以及 分子分母求导
    case '^':
     {
      Node* l = new Node;
      *l = *(root->lchild);
      Node* r = new Node;
      *r = *(root->rchild);
      
      Node* p = new Node;
      p->data = "ln";
      p->rchild = root->lchild;                                                                 //对于开方的求导
                                           
      return CompoundExpr('*', CompoundExpr('^', root->lchild, root->rchild),CompoundExpr('+', CompoundExpr('*', Diff(r, V), p),
                                                 CompoundExpr('/', CompoundExpr('*', root->rchild, Diff(l, V)), root->lchild)));
     }
    case 's':                                                                                        //对于sin的求导
     {
      Node* p = new Node;
      *p = *root;
      Node* r = new Node;
      *r = *(root->rchild);
      p->data = "cos";                                                                        //变成cos
      return CompoundExpr('*', Diff(r, V), p);
     }
    case 'c':
     {                                                                                           //对于cos的求导
      Node* l = new Node;
      *l = *root;
      Node* r = new Node;
      *r = *(root->rchild);
      l->data = "sin";                                                                       //变成sin
      Node* q = new Node;
      q->data = "-1";
      return CompoundExpr('*', CompoundExpr('*', q, Diff(r, V)), l);
     }
    case 'l':
     {
      Node* r = new Node;
      *r = *(root->rchild);
      return CompoundExpr('/', Diff(r, V), root->rchild);
     }
   }
  }
 }
}
void show(Node* root){                                                                                        //输出表达式的形式
 
    if(root!=NULL){
     
     if(root->lchild){                                                                                     //先输出左子树
      if((!CharToNum(root->lchild->data) && (Judge(root->data[0]) > Judge(root->lchild->data[0]))) || root->lchild->data[0] == '^') {
    cout << " (";
    show(root->lchild);
    cout << " )";
   } else show(root->lchild);                                                                         //对于符号优先级做判断,加括号
  
     }
     
     cout<<" "<< root->data;                                                                               //中间节点输出
    
     if(root->rchild){
      if((!CharToNum(root->rchild->data) && (Judge(root->data[0]) >= Judge(root->rchild->data[0]))) || root->rchild->data[0] == '^') {
    cout << " (";
    show(root->rchild);                                                                            //输出右子树
    cout << " )";
   } else show(root->rchild); 
     }
    
 }
}

int find(Node* root){                                                                                         //找到有数字的那些节点
 if(root){
  if(Jud(root->data)==0) return 1;
  if(Jud(root->lchild->data)==0) return 1;
  else  find(root->lchild);
 
  if(Jud(root->rchild->data)==0) return 1;
  else  find(root->rchild);
  
  return 0;
 }
}

Node* Merge(Node* root){                                                                                      //化简的函数
    if(root) {
  
  if(!CharToNum(root->data) && root->lchild && root->rchild && CharToNum(root->lchild->data) && CharToNum(root->rchild->data)) {
                                                                                                              //如果节点左右不空且可计算,则计算
   switch(root->data[0]) {
    case '+' :
     {
      root->data = NumToStr(DoCharToNum(root->lchild->data) + DoCharToNum(root->rchild->data));
      root->lchild = NULL;
      root->rchild = NULL;
      return root;
     }
    case '-' :
     {
      root->data =  NumToStr(DoCharToNum(root->lchild->data) - DoCharToNum(root->rchild->data));
      root->lchild = NULL;
      root->rchild = NULL;
      return root;
     }
    case '*' :
     {  
      root->data = NumToStr(DoCharToNum(root->lchild->data) * DoCharToNum(root->rchild->data));
      root->lchild = NULL;
      root->rchild = NULL;
      return root;
     }
    case '/' :
     {
      root->data = NumToStr(DoCharToNum(root->lchild->data) / DoCharToNum(root->rchild->data));
      root->lchild = NULL;
      root->rchild = NULL;
      return root;
     }
    case '^' :
     {
      root->data = NumToStr(pow(DoCharToNum(root->lchild->data), DoCharToNum(root->rchild->data)));
      root->lchild = NULL;
      root->rchild = NULL;
      return root;
     }
    
   }
  }
  
  
  else {                                                                                             //有未知数可以在分析未知数节点的左右子树
           
   Node* l = NULL;
   Node* r = NULL;
   if(root->lchild) l = MergeConst(root->lchild);
   if(root->rchild) r = MergeConst(root->rchild);
   if(r&&l) {
    root->lchild = l;
    root->rchild = r;
    return root;
   } else return root;
  }
 }

}

Node* MergeConst(Node* root){                                                                                //对于上述式子多化简几次
 
 for(int i=0;i<5;i++){
  Merge(root);
 }
}
double GetValue(Node* root){                                                                                 //求值函数
 if(root){
  char a = root->data[0];
  if(!root->rchild && !root->lchild &&CharToNum(root->data)) return DoCharToNum(root->data);          //如果节点只有一个数字,左右为空,则为为叶子节点,可以直接返回数字
  else{
   switch(a){
    case '+' : return GetValue(root->lchild) + GetValue(root->rchild);
    case '-' : return GetValue(root->lchild) - GetValue(root->rchild);
    case '*' : return GetValue(root->lchild) * GetValue(root->rchild);
    case '/' : return GetValue(root->lchild) / GetValue(root->rchild);
    case '^' : return pow(GetValue(root->lchild), GetValue(root->rchild));
       case 's' : return sin(GetValue(root->rchild));
    case 'c' : return cos(GetValue(root->rchild));
    case 'l' : return log(GetValue(root->rchild));
   }
  }
 }
}

double Assign(string s,int a){                                                                               //对未知数赋值的函数, 
 int l = s.length();
 for(int i=0;i<l;i++){                                                                                    // 直接在原来的字符串基础上把未知数变成要代入的
  if(s[i]=='x'||s[i]=='X') s[i] = a +'0';                                                                
 }         
 cout<<s<<endl;
 return GetValue(CreatTree(s));                                                                           //求值
}
 
void jiemmian(){                                                                                             //界面的展示
 cout<<"             欢迎使用本计算器             "<<endl;
 cout<<"            本计算器有以下功能            "<<endl;
 cout<<"------------------------------------------"<<endl;
    cout<<"1----创建表达式树     2----打印表达式树   "<<endl;
    cout<<"3----表达式树相加     4----得到表达式值   "<<endl;
 cout<<"5----化简表达式       6----求导           "<<endl;
 cout<<"7-----求sin           8----求cos          "<<endl;
 
 cout<<"tips:"<<endl;
  
 cout<<"           输入 1 -----创建并打印树            "<<endl;
 cout<<"           输入 2 -----创建并计算树相加        "<<endl;
 
 
}

int main(){
 string s;
 jiemmian();
 cout<<endl;
 cout<<"请输入一个前缀算术表达式   ";
 while(getline(cin,s)){
  
  if(error(s)==1) {
   int t;
   cout<<"请输入要操作的指令   : ";
   cin>>t;
   
   if(t==1){
    show(CreatTree(s));
    cout<<endl;
          cout<<"这个算式化简的结果为   ";
             show(MergeConst(CreatTree(s)));
    }
   if(t==2){
      cout<<"请输入另一表达式"<<endl;
      getchar();
      string s1;
      getline(cin,s1);
               cout<<s1<<endl;
               cout<<s<<endl;
      show(CompoundExpr('+', CreatTree(s), CreatTree(s1)));
      cout<<"这个算式化简的结果为   ";
      show(MergeConst(CompoundExpr('+', CreatTree(s), CreatTree(s1))));
   }
  }
  else continue;
  cout<<endl;
  //show(MergeConst(Diff(MergeConst(CreatTree(s)),'x')));
  //cout<<endl;
  //cout<<"这个式子的导数为   ";
  //show(Diff(CreatTree(s),'x'));

//cout<<endl;
  //cout<<"这个算式的结果为"<<GetValue(CreatTree(s));
  //cout<<"这个算式的结果为"<< Assign(s,5);
        //show(CompoundExpr('+', CreatTree(s), CreatTree(s)));
        //cout<<endl;
     //cout<<GetValue(CompoundExpr('+', CreatTree(s), CreatTree(s)));
 }

return 0;
}

*/

project 2016 11 20 树的多项式的更多相关文章

  1. U3D笔记11:47 2016/11/30-15:15 2016/12/19

    11:47 2016/11/30Before you can load a level you have to add it to the list of levels used in the gam ...

  2. 【读书笔记】2016.11.19 北航 《GDG 谷歌开发者大会》整理

    2016.11.19 周六,我们在 北航参加了<GDG 谷歌开发者大会>,在web专场,聆听了谷歌公司的与会专家的技术分享. 中午免费的午餐,下午精美的下午茶,还有精湛的技术,都是我们队谷 ...

  3. 微信iphone7、 ios10播放视频解决方案 2016.11.10

    2016.11.10日更新以下方法 微信最新出同层播放规范 即使是官方的也无法解决所有android手机的问题. 另外iphone 5 .5s 某些手机始终会弹出播放,请继续采用 “以下是老的解决办法 ...

  4. sicily 1007. To and Fro 2016 11 02

    // Problem#: 1007// Submission#: 4893204// The source code is licensed under Creative Commons Attrib ...

  5. 最新的 cocoapods 安装与使用(2016.11)

    cocoapods简介: cocoapods 是iOS的类库管理工具,可以让开发者很方便集成各种第三方库,而不用去网站上一个个下载,再一个个文件夹的拖进项目中,还得添加相关的系统依赖库.只需要安装好c ...

  6. 【转载】webstorm11(注册,激活,破解,码,一起支持正版,最新可用)(2016.11.16更新)

    很多人都发现 http://idea.lanyus.com/ 不能激活了 很多帖子说的 http://15.idea.lanyus.com/ 之类都用不了了 最近封的厉害仅作测试 选择 License ...

  7. Stack Overflow 2016年度 20个最佳Python问题(一)

    Stack Overflow 2016年度 20个最佳Python问题(一) https://zhuanlan.zhihu.com/p/25020763

  8. 【final】Scrum站立会议第2次....11.20

    小组名称:nice! 组长:李权 成员:于淼  刘芳芳韩媛媛 宫丽君 项目内容:约跑app(约吧) 时间:2016.11.9    12:00——12:30 地点:传媒西楼220室 本次对fnal阶段 ...

  9. codeforces Good bye 2016 E 线段树维护dp区间合并

    codeforces Good bye 2016 E 线段树维护dp区间合并 题目大意:给你一个字符串,范围为‘0’~'9',定义一个ugly的串,即串中的子串不能有2016,但是一定要有2017,问 ...

随机推荐

  1. 关于 矩阵在ACM中的应用

    关于矩阵在ACM中的应用 1.矩阵运算法则 重点说说矩阵与矩阵的乘法,不说加减法. 支持: 结合律  (AB)C = A(BC) 分配律 A(B+C) = AB + AB $\left( \lambd ...

  2. MFC CEdit 自动换行功能

    最近在写一个程序,对话框上的CEdit控件需显示一串字符,字符可能比较长,要根据编辑框的宽度自动换行.控件属性中已经设置了Multiline为true.Auto VScroll为true,Virtic ...

  3. 关于angularjS与jQuery框架的那些事

    这篇文章主要介绍了jQuery和angularJS的区别浅析,本文着重讲解一个熟悉jQuery的程序员如何应对angularJS中的一些编程思想的转变吗,需要的朋友可以参考下 最近一直研究angula ...

  4. Java学习基础2

    运算符: ++:  int a = 4;  int b = a++;    ++在后:先运算在递增1   输出:a=5  b=4;    int b = ++a;    ++在前:先递增1,再运算 输 ...

  5. cf730e

    一道数学题,这篇博客很好:http://blog.csdn.net/morejarphone/article/details/52926627(这样应该不算转载吧) 总结:做这类题目显然应该直接根据相 ...

  6. Unable to require openssl, install OpenSSL and rebuild ruby (preferred) or use non-HTTPS sources解决

    解决方法 ruby -v rvm requirements brew install libyaml rvm pkg install openssl rvm install 2.3.1 --with- ...

  7. linux学习笔记——基础命令

    最近看了一些老男孩linux运维视频,挺不错的,特此记录一下 linux组成 gun组件 shell等 linux内核 其他软件 linux主要内核: linux kernel2.2 linux ke ...

  8. C#(asp.net )读取ASHX文件(一般处理程序)

    c#后台获取asxh的返回数据,后台创建一个请求实例,获取请求实例的返回值 public string GetResponseByPost(string apiUrl, string queryStr ...

  9. KinectV2+Ubuntu 14.04+Ros 安装教程

    前言 个人理解错误的地方还请不吝赐教,转载请标明出处,内容如有改动更新,请看原博:http://www.cnblogs.com/hitcm/ 如有任何问题,feel free to contact m ...

  10. 黑科技项目:英雄无敌III Mod <<Fallen Angel>>介绍

    英雄无敌三简介(Heroes of Might and Magic III) 英3是1999年由New World Computing在Windows平台上开发的回合制策略魔幻游戏,其出版商是3DO. ...