[Offer收割]编程练习赛42 register

Ended

Participants:125

Verdict:Accepted
Score:100 / 100
Submitted:2017-12-31 12:14:17

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 <bits/stdc++.h>
using namespace std;
#define INF 2139062143
#define LINF 9187201950435737471
#define mem(a,v) memset(a,v,sizeof(a))
#define maxn 2010
#define rep(i, a, b) for (int i = (a); i <= (b); ++i)
#define red(i, a, b) for (int i = (a); i >= (b); --i)
#define pb push_back
#define eps 1e-7
#define ll long long
#define max(a,b) (a>b?a:b)
#define min(a,b) (a<b?a:b)
typedef pair<int, int> pp;
ll c[maxn][maxn];
vector<pp> s[maxn];
int main() {
//    ios::sync_with_stdio(false);cout.setf(ios::fixed);cout.precision(20);
#ifdef LOCAL
    freopen("/Users/huangqingwei/Documents/C++ workspace/codeforces/input.txt", "r", stdin);
//    freopen("input.txt", "r",stdin);
//    freopen("output.txt", "w",stdout);
#endif
    int n,p,q;
    mem(c,0);
    scanf("%d%d%d",&n,&p,&q);
    rep(i,1,p)
    {
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX