hiho week 147 register

Ended

Participants:514

Verdict:Accepted
Score:100 / 100
Submitted:2017-04-26 10:28:21

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 <bitset>
#include <memory.h>
using namespace std;
const int MAX_N = 30000 + 1;
struct
{
    int a;
    int b;
    int c;
    int d;
    int e;
} r[MAX_N];
int rera[MAX_N], rerb[MAX_N], rerc[MAX_N], rerd[MAX_N], rere[MAX_N];
struct
{
    bitset<MAX_N> a;
    bitset<MAX_N> b;
    bitset<MAX_N> c;
    bitset<MAX_N> d;
    bitset<MAX_N> e;
} rset[MAX_N];
int main()
{
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX