hiho week 54 register

Ended

Participants:493

Verdict:Accepted
Score:100 / 100
Submitted:2015-07-17 22:09:29

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 <iostream>
#include <cstdio>
using namespace std;
inline int getint()
{
    char c;
    while ((c = getchar()) < '0' || c > '9');
    int res = c - '0';
    while ((c = getchar()) >= '0' && c <= '9')
        res = res * 10 + c - '0';
    return res;
}
inline void tense(int &a, const int &b)
{
    if (b < a)
        a = b;
}
inline void relax(int &a, const int &b)
{
    if (b > a)
        a = b;
}
const int MaxN = 20005;
const int MaxM = 100005;
int n, m;
int w[MaxN], newW[MaxN];
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX