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

Ended

Participants:125

Verdict:Time Limit Exceeded
Score:70 / 100
Submitted:2018-01-21 12:54:07

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 <set>
#include <map>
#include <stack>
#include <queue>
#include <math.h>
#include <vector>
#include <utility>
#include <string>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <iostream>
#include <algorithm>
#include <functional>
using namespace std;
#define INF 0x3f3f3f3f
typedef long long LL;
const int maxn=100000+10;
int a[2][maxn];
int main()
{
    int n,ans=0;
    cin>>n;
    for(int i=0;i<n;i++)
    {
        cin>>a[0][i]>>a[1][i];
    }
    int t=0;
    for(int i=0;i<n;i++)
    {
        for(int j=i+1;j<n;j++)
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX