hiho week 169 register

Ended

Participants:408

Verdict:Accepted
Score:100 / 100
Submitted:2017-09-23 20:44:39

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<map>
#include<set>
#include<cmath>
#include<stack>
#include<queue>
#include<cstdio>
#include<string>
#include<vector>
#include<cstring>
#include<iostream>
#include<algorithm>
#include<functional>
#define FIN freopen("input.txt","r",stdin)
#define FOUT freopen("output.txt","w+",stdout)
using namespace std;
typedef long long LL;
typedef pair<int, int>PII;
const int MX = 1e5 + 5;
char op[MX];
int lch[MX], rch[MX], s[MX], r;
int build(char *S, int L, int R) {
    int c[] = { -1, -1}, p = 0, u;
    int sum = 0, sign = true;
    for(int i = L; i <= R; i++) {
        if(isdigit(S[i])) sum = sum * 10 + S[i] - '0';
        else {
            sign = false;
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX