hihoCoder Challenge 9 register

Ended

Participants:154

Verdict:Accepted
Submitted:2015-03-01 19:32: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 <cstdio>
#include <string>
#include <algorithm>
using namespace std;
struct S
{
    int num;
    long long sum_num;
};
S fi[100001], se[100001];
bool operator<(const S&i, const S&j){ return i.num<j.num; }
int main()
{
    //freopen("input.txt", "r", stdin);
    int T;
    scanf("%d", &T);
    while (T--)
    {
        int N, M;
        scanf("%d %d", &N, &M);
        for (int i = 0; i < N; ++i)
        {
            int u, v;
            scanf("%d %d", &u, &v);
            fi[i].num = u;
            fi[i].sum_num = v;
        }
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX