hiho week 147 register

Ended

Participants:514

Verdict:Accepted
Score:100 / 100
Submitted:2017-04-29 17:42:18

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 <string.h>
#include <algorithm>
#include <math.h>
#include <queue>
#include <map>
#include <iostream>
#include <cstdlib>
#include <bitset>
using namespace std;
struct lt
{
    int a,i;
    bool operator <(const lt &b)const
    {
        return a<b.a;
    }
};
int a[6][30030];
lt b[6][30030];
bitset<30030>bit[6][30030];
int main()
{
    int n;
    while(~scanf("%d",&n))
    {
        for(int i=0; i<n; ++i)
            for(int j=0; j<5; ++j)
            {
                scanf("%d",&a[j][i]);
                b[j][i].a=a[j][i];
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX