hiho week 255 register

Ended

Participants:127

Verdict:Accepted
Score:100 / 100
Submitted:2019-05-18 20:36:22

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
/*
 * @Author      : IceCory (icecory520@gmail.com)
 * @Copyright(C): GPL 3.0
 * @desc        :
 */
#ifdef TEST
#include "utils/define.h"
#else
#define parse() ;
#define pp(...) ;
#endif
#include <bits/stdc++.h>
int main(int argc, char* argv[]) {
    parse() size_t n;
    std::cin >> n;
    std::vector<std::unordered_map<int64_t, int>> aux;
    aux.resize(4);
    auto add_or_set = [&aux](size_t idx, int64_t key) {
        if (aux[idx].count(key)) {
            aux[idx][key]++;
        } else {
            aux[idx][key] = 1;
        }
    };
    aux.reserve(200000 * 6);
    for (size_t i = 0; i < n; i++) {
        int64_t x, y;
        std::cin >> x >> y;
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX