답안 #413029

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
413029 2021-05-28T06:01:42 Z Karliver 게임 (IOI14_game) C++14
100 / 100
355 ms 12392 KB
#include "game.h"
	
#include <bits/stdc++.h>

#define FIXED_FLOAT(x)  std::fixed <<std::setprecision(20) << (x)
#define all(v) (v).begin(), (v).end()
using namespace  std;
#define forn(i,n) for (int i = 0; i < (n); ++i)
#define rforn(i, n) for(int i = (n) - 1;i >= 0;--i)
using ll = long long;
int mod = (ll)1e9 + 7;
#define PI acos(-1)
typedef pair<int, int> pairs;

const int INF = 1e9 + 1;
const int N = 2e5 + 100;
const double eps = 1e-7;

template <class T> using V = vector<T>;  // from yosupo 
template <class T> using VV = V<V<T>>;  // from yosupo


template <typename XPAX>
void ckma(XPAX &x, XPAX y) {
    x = (x < y ? y : x);
}
template <typename XPAX>
void ckmi(XPAX &x, XPAX y) {
    x = (x > y ? y : x);
}
V<int> deg(N, 0);
void initialize(int n) {
	

}

int hasEdge(int u, int v) {

  
    return ++deg[u > v ? u : v] == (u > v ? u : v);
    
}

// 1 -> 0, 3 -> 1, 
// 1 3
// 0 3
// 2 0
// 1 0
// 3 1
// 2 1

# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 972 KB Output is correct
2 Correct 1 ms 972 KB Output is correct
3 Correct 2 ms 1100 KB Output is correct
4 Correct 1 ms 1100 KB Output is correct
5 Correct 1 ms 972 KB Output is correct
6 Correct 1 ms 1100 KB Output is correct
7 Correct 1 ms 1100 KB Output is correct
8 Correct 1 ms 972 KB Output is correct
9 Correct 1 ms 972 KB Output is correct
10 Correct 1 ms 1100 KB Output is correct
11 Correct 1 ms 972 KB Output is correct
12 Correct 1 ms 972 KB Output is correct
13 Correct 1 ms 1100 KB Output is correct
14 Correct 1 ms 972 KB Output is correct
15 Correct 2 ms 972 KB Output is correct
16 Correct 1 ms 972 KB Output is correct
17 Correct 1 ms 972 KB Output is correct
18 Correct 1 ms 972 KB Output is correct
19 Correct 1 ms 972 KB Output is correct
20 Correct 2 ms 972 KB Output is correct
21 Correct 1 ms 1100 KB Output is correct
22 Correct 1 ms 1100 KB Output is correct
23 Correct 1 ms 1100 KB Output is correct
24 Correct 1 ms 1100 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 988 KB Output is correct
2 Correct 1 ms 972 KB Output is correct
3 Correct 1 ms 972 KB Output is correct
4 Correct 1 ms 972 KB Output is correct
5 Correct 1 ms 972 KB Output is correct
6 Correct 1 ms 1100 KB Output is correct
7 Correct 1 ms 1100 KB Output is correct
8 Correct 2 ms 972 KB Output is correct
9 Correct 1 ms 972 KB Output is correct
10 Correct 1 ms 1096 KB Output is correct
11 Correct 1 ms 1100 KB Output is correct
12 Correct 1 ms 1100 KB Output is correct
13 Correct 1 ms 1092 KB Output is correct
14 Correct 1 ms 972 KB Output is correct
15 Correct 1 ms 1100 KB Output is correct
16 Correct 1 ms 1100 KB Output is correct
17 Correct 1 ms 972 KB Output is correct
18 Correct 1 ms 1100 KB Output is correct
19 Correct 1 ms 972 KB Output is correct
20 Correct 1 ms 972 KB Output is correct
21 Correct 1 ms 972 KB Output is correct
22 Correct 1 ms 972 KB Output is correct
23 Correct 1 ms 972 KB Output is correct
24 Correct 1 ms 972 KB Output is correct
25 Correct 1 ms 972 KB Output is correct
26 Correct 1 ms 972 KB Output is correct
27 Correct 1 ms 972 KB Output is correct
28 Correct 1 ms 1100 KB Output is correct
29 Correct 2 ms 972 KB Output is correct
30 Correct 1 ms 972 KB Output is correct
31 Correct 2 ms 972 KB Output is correct
32 Correct 1 ms 972 KB Output is correct
33 Correct 1 ms 1096 KB Output is correct
34 Correct 2 ms 1112 KB Output is correct
35 Correct 2 ms 1112 KB Output is correct
36 Correct 2 ms 1100 KB Output is correct
37 Correct 2 ms 1100 KB Output is correct
38 Correct 2 ms 1100 KB Output is correct
39 Correct 2 ms 1100 KB Output is correct
40 Correct 2 ms 1100 KB Output is correct
41 Correct 2 ms 1112 KB Output is correct
42 Correct 2 ms 1100 KB Output is correct
43 Correct 2 ms 1100 KB Output is correct
44 Correct 2 ms 1100 KB Output is correct
45 Correct 2 ms 1100 KB Output is correct
46 Correct 2 ms 1100 KB Output is correct
47 Correct 2 ms 1100 KB Output is correct
48 Correct 2 ms 1100 KB Output is correct
49 Correct 2 ms 1100 KB Output is correct
50 Correct 2 ms 1100 KB Output is correct
51 Correct 2 ms 1100 KB Output is correct
52 Correct 2 ms 1100 KB Output is correct
53 Correct 2 ms 1100 KB Output is correct
54 Correct 2 ms 1100 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 972 KB Output is correct
2 Correct 1 ms 1100 KB Output is correct
3 Correct 1 ms 972 KB Output is correct
4 Correct 1 ms 1088 KB Output is correct
5 Correct 1 ms 972 KB Output is correct
6 Correct 1 ms 1100 KB Output is correct
7 Correct 1 ms 972 KB Output is correct
8 Correct 2 ms 972 KB Output is correct
9 Correct 1 ms 972 KB Output is correct
10 Correct 1 ms 972 KB Output is correct
11 Correct 1 ms 972 KB Output is correct
12 Correct 1 ms 972 KB Output is correct
13 Correct 1 ms 1092 KB Output is correct
14 Correct 1 ms 972 KB Output is correct
15 Correct 1 ms 1100 KB Output is correct
16 Correct 1 ms 1092 KB Output is correct
17 Correct 2 ms 1100 KB Output is correct
18 Correct 1 ms 1092 KB Output is correct
19 Correct 1 ms 972 KB Output is correct
20 Correct 1 ms 972 KB Output is correct
21 Correct 1 ms 1100 KB Output is correct
22 Correct 1 ms 1096 KB Output is correct
23 Correct 1 ms 972 KB Output is correct
24 Correct 1 ms 972 KB Output is correct
25 Correct 1 ms 1100 KB Output is correct
26 Correct 1 ms 1092 KB Output is correct
27 Correct 1 ms 1100 KB Output is correct
28 Correct 1 ms 972 KB Output is correct
29 Correct 1 ms 1092 KB Output is correct
30 Correct 2 ms 972 KB Output is correct
31 Correct 1 ms 1100 KB Output is correct
32 Correct 1 ms 1096 KB Output is correct
33 Correct 1 ms 972 KB Output is correct
34 Correct 2 ms 1108 KB Output is correct
35 Correct 2 ms 1100 KB Output is correct
36 Correct 2 ms 1100 KB Output is correct
37 Correct 2 ms 1108 KB Output is correct
38 Correct 2 ms 1100 KB Output is correct
39 Correct 3 ms 1100 KB Output is correct
40 Correct 3 ms 1100 KB Output is correct
41 Correct 2 ms 1100 KB Output is correct
42 Correct 2 ms 1100 KB Output is correct
43 Correct 2 ms 1100 KB Output is correct
44 Correct 2 ms 1112 KB Output is correct
45 Correct 2 ms 1100 KB Output is correct
46 Correct 2 ms 1100 KB Output is correct
47 Correct 3 ms 1100 KB Output is correct
48 Correct 2 ms 1100 KB Output is correct
49 Correct 2 ms 1112 KB Output is correct
50 Correct 2 ms 1104 KB Output is correct
51 Correct 2 ms 1100 KB Output is correct
52 Correct 2 ms 1116 KB Output is correct
53 Correct 2 ms 1100 KB Output is correct
54 Correct 2 ms 1100 KB Output is correct
55 Correct 39 ms 2744 KB Output is correct
56 Correct 41 ms 2756 KB Output is correct
57 Correct 39 ms 2816 KB Output is correct
58 Correct 41 ms 2832 KB Output is correct
59 Correct 40 ms 2828 KB Output is correct
60 Correct 39 ms 2756 KB Output is correct
61 Correct 39 ms 2764 KB Output is correct
62 Correct 40 ms 2756 KB Output is correct
63 Correct 39 ms 2828 KB Output is correct
64 Correct 40 ms 2716 KB Output is correct
65 Correct 41 ms 2752 KB Output is correct
66 Correct 40 ms 2748 KB Output is correct
67 Correct 41 ms 2800 KB Output is correct
68 Correct 42 ms 2800 KB Output is correct
69 Correct 39 ms 2720 KB Output is correct
70 Correct 41 ms 2792 KB Output is correct
71 Correct 39 ms 2820 KB Output is correct
72 Correct 39 ms 2860 KB Output is correct
73 Correct 39 ms 2768 KB Output is correct
74 Correct 39 ms 2812 KB Output is correct
75 Correct 40 ms 2904 KB Output is correct
76 Correct 87 ms 5052 KB Output is correct
77 Correct 89 ms 5132 KB Output is correct
78 Correct 92 ms 5188 KB Output is correct
79 Correct 91 ms 5120 KB Output is correct
80 Correct 92 ms 5060 KB Output is correct
81 Correct 93 ms 5068 KB Output is correct
82 Correct 88 ms 5128 KB Output is correct
83 Correct 88 ms 5100 KB Output is correct
84 Correct 100 ms 5064 KB Output is correct
85 Correct 152 ms 8300 KB Output is correct
86 Correct 164 ms 8184 KB Output is correct
87 Correct 161 ms 8100 KB Output is correct
88 Correct 154 ms 8132 KB Output is correct
89 Correct 156 ms 8128 KB Output is correct
90 Correct 155 ms 8152 KB Output is correct
91 Correct 152 ms 8272 KB Output is correct
92 Correct 152 ms 8060 KB Output is correct
93 Correct 155 ms 8132 KB Output is correct
94 Correct 355 ms 12284 KB Output is correct
95 Correct 345 ms 12392 KB Output is correct
96 Correct 342 ms 12280 KB Output is correct
97 Correct 350 ms 12252 KB Output is correct
98 Correct 343 ms 12272 KB Output is correct
99 Correct 347 ms 12248 KB Output is correct
100 Correct 342 ms 12292 KB Output is correct