[BAILIAN] hihoCoder Challenge 34 register

Ended

Participants:186

Verdict:Accepted
Submitted:2018-07-15 19:28:59

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 <algorithm>
#include <numeric>
using namespace std;
typedef long long LL;
LL max(LL a, LL b, LL c)
{ return max(max(a,b), c); }
int main()
{
    int T;
    scanf("%d", &T);
    
    for(int id = 1; id <= T; id++) {
        int N, M;
        scanf("%d%d", &N, &M);
        
        static int A[100005];
        for(int i = 1; i <= N; i++)
            scanf("%d", &A[i]);
        sort(&A[1], &A[N]+1);
        
        LL max_B = -2e9;
        LL min_B = 2e9;
        for(int i = 1; i <= M; i++) {
            LL n;
            scanf("%lld", &n);
            
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX