hihoCoder太阁最新面经算法竞赛1 register

Ended

Participants:151

Verdict:Accepted
Score:100 / 100
Submitted:2016-05-22 01:19:46

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
#define entry(name) void entry_stub(){std::ios::sync_with_stdio(false); mylib::name solver;solver.run();}
#ifndef TESTMODE
#include <iostream>
#include <strstream>
#include <sstream>
#include <vector>
#include <functional>
#include <set>
#include <algorithm>
#include <queue>
#include <map>
#include <stack>
#include <cstring>
//#include <ext/unordered_set>
//#include <ext/hash_map>
#include <limits>
using namespace std;
void entry_stub();
int main(int argc,char *argv[]){entry_stub();}
#endif
namespace mylib
{   
    class SegTree
    {
    private:
        struct Node
        {
            int maxvar,minvar;
        };
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX