hiho week 147 register

Ended

Participants:514

Verdict:Accepted
Score:100 / 100
Submitted:2017-04-22 21:48:15

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>
#include <cstring>
#include <string>
#include <algorithm>
#include <cmath>
#include <vector>
#include <bitset>
#include <map>
using namespace std;
int a[6][30001] = {0};
bitset<30001> bs[30001][6];
int n;
int main()
{
    scanf("%d",&n);
    for(int i = 1; i <= n; i++)
    {
        int ta,tb,tc,td,te;
//      cin >> ta >> tb >> tc >> td >> te;
        scanf("%d %d %d %d %d",&ta,&tb,&tc,&td,&te);
        a[1][ta] = a[2][tb] = a[3][tc] = a[4][td] = a[5][te] = i;
    }
    
    for(int i = 1; i <= 5; i++)
    {
        bitset<30001> b;
        for(int j = 1; j <= n; j++)
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX