hiho week 91 register

Ended

Participants:931

Verdict:Wrong Answer
Score:0 / 100
Submitted:2016-04-01 11:09: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>
using namespace std;
#include <cstring>
#include <string>
#include <sstream>
#include <cmath>
#include <algorithm>
#include <vector>
#include <map>
#include <set>
#define REP(i,a,n) for(int i=a;i<n;i++)
#define EACH(it,a) for(auto it=(a).begin();it!=(a).end();it++)
#define LL long long
int bc[100001];
int ac[100001];
int ans[100001];
struct leg{
    int l;
    int d;
};
int main()
{
    ios_base::sync_with_stdio(0);
#ifdef _DEBUG
    freopen("in.txt","r",stdin);
#endif
    int n,i,j,ansidx=0,lnum;
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX