hiho week 169 register

Ended

Participants:408

Verdict:Accepted
Score:100 / 100
Submitted:2017-09-27 21:02:57

Lang:G++

Edit
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#include<stdio.h>
#include<stdlib.h>
#include<math.h>
#include<string>
#include<sstream>
#include<iostream>
#include<map>
#include<stack>
using namespace std;
map<char,int>yxj;
stack<long long>number;
stack<char>zf;
void Initialize()
{
    yxj['+']=yxj['-']=0;
    yxj['*']=yxj['/']=1;
    yxj['(']=yxj[')']=-1;
}
void ys(char s)
{
    long long num1=number.top();
    number.pop();
    long long num2=number.top();
    number.pop();
    if(s=='+')
    {
        long long sum=num2+num1;
        number.push(sum);
    }
    if(s=='-')
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX