답안 #943256

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
943256 2024-03-11T09:43:31 Z beepbeepsheep 항공 노선도 (JOI18_airline) C++17
22 / 100
262 ms 15876 KB
#include "Alicelib.h"
#include <cassert>
#include <cstdio>
#define ll long long
#include <bits/stdc++.h>
using namespace std;
void Alice( int N, int M, int A[], int B[] ){
	InitG( 51*N, M+50*(N*(N+1))/2 );
    vector<int> adj[1005];
    ll cnt=0;
    for (int i=0;i<M;i++){
        MakeG(cnt,A[i],B[i]);
        cnt++;
    }
    for (int i=0;i<N;i++){
        for (int j=0;j<50*(i+1);j++){
            MakeG(cnt,i,j+N),cnt++;
        }
    }
}

#include "Boblib.h"
#include <cassert>
#include <cstdio>
#define ll long long
#include <bits/stdc++.h>
using namespace std;
void Bob( int V, int U, int C[], int D[] ){
	int n=V/51;
	int e=U-50*(n*(n+1))/2;
	InitMap(n,e);
	map<ll,ll> m;
	ll cnt[1005];
	memset(cnt,0,sizeof(cnt));
	for (int i=0;i<U;i++){
        cnt[C[i]]++,cnt[D[i]]++;
	}
	for (int i=0;i<U;i++){
        ll a=C[i];
        ll b=D[i];
        if (cnt[a]/50==0 || cnt[b]/50==0) continue;
        //cerr<<cnt[a]/50-1<<' '<<cnt[b]/50-1<<endl;
        MakeMap(cnt[a]/50-1,cnt[b]/50-1);
	}
}

# 결과 실행 시간 메모리 Grader output
1 Correct 3 ms 15616 KB Output is correct
2 Correct 3 ms 15616 KB Output is correct
3 Correct 3 ms 15624 KB Output is correct
4 Correct 3 ms 14076 KB Output is correct
5 Correct 3 ms 15620 KB Output is correct
6 Correct 3 ms 15624 KB Output is correct
7 Correct 3 ms 15616 KB Output is correct
8 Correct 3 ms 15620 KB Output is correct
9 Correct 3 ms 15616 KB Output is correct
10 Correct 3 ms 13572 KB Output is correct
11 Correct 3 ms 15620 KB Output is correct
12 Correct 3 ms 15620 KB Output is correct
13 Correct 3 ms 15620 KB Output is correct
14 Correct 3 ms 15620 KB Output is correct
15 Correct 3 ms 15620 KB Output is correct
16 Correct 3 ms 15620 KB Output is correct
17 Correct 3 ms 15620 KB Output is correct
18 Correct 3 ms 15616 KB Output is correct
19 Correct 3 ms 15620 KB Output is correct
20 Correct 3 ms 15616 KB Output is correct
21 Correct 3 ms 15616 KB Output is correct
22 Correct 3 ms 15620 KB Output is correct
23 Correct 3 ms 15620 KB Output is correct
24 Correct 2 ms 13564 KB Output is correct
25 Correct 3 ms 15460 KB Output is correct
26 Correct 3 ms 15620 KB Output is correct
27 Correct 3 ms 15616 KB Output is correct
28 Correct 3 ms 15620 KB Output is correct
29 Correct 3 ms 15616 KB Output is correct
30 Correct 2 ms 13568 KB Output is correct
31 Correct 3 ms 13572 KB Output is correct
32 Correct 3 ms 13572 KB Output is correct
33 Correct 3 ms 13572 KB Output is correct
34 Correct 3 ms 13572 KB Output is correct
35 Correct 3 ms 13568 KB Output is correct
36 Correct 3 ms 15624 KB Output is correct
37 Correct 3 ms 15620 KB Output is correct
38 Correct 3 ms 15616 KB Output is correct
39 Correct 3 ms 15620 KB Output is correct
40 Correct 3 ms 15620 KB Output is correct
41 Correct 3 ms 15620 KB Output is correct
42 Correct 3 ms 15872 KB Output is correct
43 Correct 3 ms 15620 KB Output is correct
44 Correct 2 ms 13572 KB Output is correct
45 Correct 3 ms 13484 KB Output is correct
46 Correct 3 ms 15620 KB Output is correct
47 Correct 3 ms 15616 KB Output is correct
48 Correct 3 ms 15876 KB Output is correct
49 Correct 3 ms 15620 KB Output is correct
50 Correct 3 ms 13568 KB Output is correct
51 Correct 2 ms 13572 KB Output is correct
52 Correct 3 ms 15620 KB Output is correct
53 Correct 3 ms 13572 KB Output is correct
54 Correct 3 ms 15620 KB Output is correct
55 Correct 3 ms 15620 KB Output is correct
56 Correct 3 ms 15620 KB Output is correct
57 Correct 3 ms 15620 KB Output is correct
58 Correct 3 ms 15624 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 3 ms 15616 KB Output is correct
2 Correct 3 ms 15616 KB Output is correct
3 Correct 3 ms 15624 KB Output is correct
4 Correct 3 ms 14076 KB Output is correct
5 Correct 3 ms 15620 KB Output is correct
6 Correct 3 ms 15624 KB Output is correct
7 Correct 3 ms 15616 KB Output is correct
8 Correct 3 ms 15620 KB Output is correct
9 Correct 3 ms 15616 KB Output is correct
10 Correct 3 ms 13572 KB Output is correct
11 Correct 3 ms 15620 KB Output is correct
12 Correct 3 ms 15620 KB Output is correct
13 Correct 3 ms 15620 KB Output is correct
14 Correct 3 ms 15620 KB Output is correct
15 Correct 3 ms 15620 KB Output is correct
16 Correct 3 ms 15620 KB Output is correct
17 Correct 3 ms 15620 KB Output is correct
18 Correct 3 ms 15616 KB Output is correct
19 Correct 3 ms 15620 KB Output is correct
20 Correct 3 ms 15616 KB Output is correct
21 Correct 3 ms 15616 KB Output is correct
22 Correct 3 ms 15620 KB Output is correct
23 Correct 3 ms 15620 KB Output is correct
24 Correct 2 ms 13564 KB Output is correct
25 Correct 3 ms 15460 KB Output is correct
26 Correct 3 ms 15620 KB Output is correct
27 Correct 3 ms 15616 KB Output is correct
28 Correct 3 ms 15620 KB Output is correct
29 Correct 3 ms 15616 KB Output is correct
30 Correct 2 ms 13568 KB Output is correct
31 Correct 3 ms 13572 KB Output is correct
32 Correct 3 ms 13572 KB Output is correct
33 Correct 3 ms 13572 KB Output is correct
34 Correct 3 ms 13572 KB Output is correct
35 Correct 3 ms 13568 KB Output is correct
36 Correct 3 ms 15624 KB Output is correct
37 Correct 3 ms 15620 KB Output is correct
38 Correct 3 ms 15616 KB Output is correct
39 Correct 3 ms 15620 KB Output is correct
40 Correct 3 ms 15620 KB Output is correct
41 Correct 3 ms 15620 KB Output is correct
42 Correct 3 ms 15872 KB Output is correct
43 Correct 3 ms 15620 KB Output is correct
44 Correct 2 ms 13572 KB Output is correct
45 Correct 3 ms 13484 KB Output is correct
46 Correct 3 ms 15620 KB Output is correct
47 Correct 3 ms 15616 KB Output is correct
48 Correct 3 ms 15876 KB Output is correct
49 Correct 3 ms 15620 KB Output is correct
50 Correct 3 ms 13568 KB Output is correct
51 Correct 2 ms 13572 KB Output is correct
52 Correct 3 ms 15620 KB Output is correct
53 Correct 3 ms 13572 KB Output is correct
54 Correct 3 ms 15620 KB Output is correct
55 Correct 3 ms 15620 KB Output is correct
56 Correct 3 ms 15620 KB Output is correct
57 Correct 3 ms 15620 KB Output is correct
58 Correct 3 ms 15624 KB Output is correct
59 Incorrect 1 ms 8792 KB Wrong Answer [1]
60 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Incorrect 262 ms 9964 KB Wrong Answer [1]
2 Halted 0 ms 0 KB -