답안 #391571

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
391571 2021-04-19T11:55:42 Z maomao90 Arcade (NOI20_arcade) C++14
51 / 100
1000 ms 259768 KB
#include <bits/stdc++.h> 
using namespace std;

#define mnto(x, y) x = min(x, (__typeof__(x)) y)
#define mxto(x, y) x = max(x, (__typeof__(x)) y)
#define REP(i, s, e) for (int i = s; i < e; i++)
#define RREP(i, s, e) for (int i = s; i >= e; i--)
typedef long long ll;
typedef long double ld;
#define MP make_pair
#define FI first
#define SE second
typedef pair<int, int> ii;
typedef pair<ll, ll> pll;
#define MT make_tuple
typedef tuple<int, int, int> iii;
#define ALL(_a) _a.begin(), _a.end()
#define pb emplace_back
typedef vector<int> vi;
typedef vector<ii> vii;

#define INF 1000000005
#define LINF 1000000000000000005
#define MOD 1000000007
#define MAXN 500005

int n, m;
ii ta[MAXN];
vi adj[MAXN];
int p[MAXN * 2];
int mcbm;

bool visited[MAXN];
bool dfs(int u) {
	for (int v : adj[u]) {
		if (visited[v]) continue;
		visited[v] = 1;
		if (p[v] == -1 || dfs(p[v])) {
			p[v] = u;
			return 1;
		}
	}
	return 0;
}

bool isPos(int i, int j) {
	return ta[j].FI - ta[i].FI >= abs(ta[j].SE - ta[i].SE);
}

int main() {
	scanf("%d%d", &n, &m);
	REP (i, 0, m) {
		scanf("%d", &ta[i].FI);
	}
	REP (i, 0, m) {
		scanf("%d", &ta[i].SE);
	}
	sort(ta, ta + m);
	REP (i, 0, m) {
		REP (j, i + 1, m) {
			if (isPos(i, j)) {
				//printf("%d %d\n", i, j);
				adj[i].pb(j + m);
			}
		}
	}
	memset(p, -1, sizeof p);
	REP (i, 0, m) {
		REP (j, 0, m * 2) {
			visited[j] = 0;
		}
		if (dfs(i)) {
			mcbm++;
		}
	}
	printf("%d\n", m - mcbm);
	return 0;
}

Compilation message

Arcade.cpp: In function 'int main()':
Arcade.cpp:51:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   51 |  scanf("%d%d", &n, &m);
      |  ~~~~~^~~~~~~~~~~~~~~~
Arcade.cpp:53:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   53 |   scanf("%d", &ta[i].FI);
      |   ~~~~~^~~~~~~~~~~~~~~~~
Arcade.cpp:56:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   56 |   scanf("%d", &ta[i].SE);
      |   ~~~~~^~~~~~~~~~~~~~~~~
# 결과 실행 시간 메모리 Grader output
1 Correct 9 ms 15948 KB Output is correct
2 Correct 9 ms 15972 KB Output is correct
3 Correct 9 ms 15904 KB Output is correct
4 Correct 9 ms 15948 KB Output is correct
5 Correct 9 ms 15992 KB Output is correct
6 Correct 9 ms 15948 KB Output is correct
7 Correct 9 ms 15948 KB Output is correct
8 Correct 9 ms 15880 KB Output is correct
9 Correct 9 ms 15892 KB Output is correct
10 Correct 9 ms 15948 KB Output is correct
11 Correct 9 ms 15948 KB Output is correct
12 Correct 9 ms 15912 KB Output is correct
13 Correct 9 ms 15884 KB Output is correct
14 Correct 9 ms 15976 KB Output is correct
15 Correct 9 ms 15976 KB Output is correct
16 Correct 9 ms 15888 KB Output is correct
17 Correct 9 ms 16012 KB Output is correct
18 Correct 9 ms 15948 KB Output is correct
19 Correct 9 ms 15948 KB Output is correct
20 Correct 9 ms 15948 KB Output is correct
21 Correct 10 ms 15912 KB Output is correct
22 Correct 9 ms 15948 KB Output is correct
23 Correct 9 ms 15948 KB Output is correct
24 Correct 9 ms 15948 KB Output is correct
25 Correct 9 ms 15944 KB Output is correct
26 Correct 9 ms 15900 KB Output is correct
27 Correct 9 ms 15904 KB Output is correct
28 Correct 9 ms 15908 KB Output is correct
29 Correct 9 ms 15948 KB Output is correct
30 Correct 9 ms 15932 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 9 ms 15948 KB Output is correct
2 Correct 9 ms 15972 KB Output is correct
3 Correct 9 ms 15904 KB Output is correct
4 Correct 9 ms 15948 KB Output is correct
5 Correct 9 ms 15992 KB Output is correct
6 Correct 9 ms 15948 KB Output is correct
7 Correct 9 ms 15948 KB Output is correct
8 Correct 9 ms 15880 KB Output is correct
9 Correct 9 ms 15892 KB Output is correct
10 Correct 9 ms 15948 KB Output is correct
11 Correct 9 ms 15948 KB Output is correct
12 Correct 9 ms 15912 KB Output is correct
13 Correct 9 ms 15884 KB Output is correct
14 Correct 9 ms 15976 KB Output is correct
15 Correct 9 ms 15976 KB Output is correct
16 Correct 9 ms 15888 KB Output is correct
17 Correct 9 ms 16012 KB Output is correct
18 Correct 9 ms 15948 KB Output is correct
19 Correct 9 ms 15948 KB Output is correct
20 Correct 9 ms 15948 KB Output is correct
21 Correct 10 ms 15912 KB Output is correct
22 Correct 9 ms 15948 KB Output is correct
23 Correct 9 ms 15948 KB Output is correct
24 Correct 9 ms 15948 KB Output is correct
25 Correct 9 ms 15944 KB Output is correct
26 Correct 9 ms 15900 KB Output is correct
27 Correct 9 ms 15904 KB Output is correct
28 Correct 9 ms 15908 KB Output is correct
29 Correct 9 ms 15948 KB Output is correct
30 Correct 9 ms 15932 KB Output is correct
31 Correct 8 ms 15948 KB Output is correct
32 Correct 10 ms 15948 KB Output is correct
33 Correct 9 ms 15948 KB Output is correct
34 Correct 9 ms 15972 KB Output is correct
35 Correct 10 ms 15948 KB Output is correct
36 Correct 9 ms 15948 KB Output is correct
37 Correct 9 ms 15948 KB Output is correct
38 Correct 9 ms 15948 KB Output is correct
39 Correct 9 ms 15948 KB Output is correct
40 Correct 9 ms 15948 KB Output is correct
41 Correct 9 ms 15888 KB Output is correct
42 Correct 9 ms 15948 KB Output is correct
43 Correct 10 ms 15948 KB Output is correct
44 Correct 10 ms 15880 KB Output is correct
45 Correct 9 ms 15948 KB Output is correct
46 Correct 9 ms 15884 KB Output is correct
47 Correct 9 ms 15948 KB Output is correct
48 Correct 9 ms 15968 KB Output is correct
49 Correct 9 ms 15896 KB Output is correct
50 Correct 9 ms 15884 KB Output is correct
51 Correct 9 ms 15952 KB Output is correct
52 Correct 9 ms 15948 KB Output is correct
53 Correct 9 ms 15948 KB Output is correct
54 Correct 9 ms 15948 KB Output is correct
55 Correct 9 ms 15884 KB Output is correct
56 Correct 9 ms 15952 KB Output is correct
57 Correct 9 ms 15952 KB Output is correct
58 Correct 10 ms 15948 KB Output is correct
59 Correct 9 ms 15888 KB Output is correct
60 Correct 9 ms 15948 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 9 ms 15948 KB Output is correct
2 Correct 9 ms 15972 KB Output is correct
3 Correct 9 ms 15904 KB Output is correct
4 Correct 9 ms 15948 KB Output is correct
5 Correct 9 ms 15992 KB Output is correct
6 Correct 9 ms 15948 KB Output is correct
7 Correct 9 ms 15948 KB Output is correct
8 Correct 9 ms 15880 KB Output is correct
9 Correct 9 ms 15892 KB Output is correct
10 Correct 9 ms 15948 KB Output is correct
11 Correct 9 ms 15948 KB Output is correct
12 Correct 9 ms 15912 KB Output is correct
13 Correct 9 ms 15884 KB Output is correct
14 Correct 9 ms 15976 KB Output is correct
15 Correct 9 ms 15976 KB Output is correct
16 Correct 9 ms 15888 KB Output is correct
17 Correct 9 ms 16012 KB Output is correct
18 Correct 9 ms 15948 KB Output is correct
19 Correct 9 ms 15948 KB Output is correct
20 Correct 9 ms 15948 KB Output is correct
21 Correct 10 ms 15912 KB Output is correct
22 Correct 9 ms 15948 KB Output is correct
23 Correct 9 ms 15948 KB Output is correct
24 Correct 9 ms 15948 KB Output is correct
25 Correct 9 ms 15944 KB Output is correct
26 Correct 9 ms 15900 KB Output is correct
27 Correct 9 ms 15904 KB Output is correct
28 Correct 9 ms 15908 KB Output is correct
29 Correct 9 ms 15948 KB Output is correct
30 Correct 9 ms 15932 KB Output is correct
31 Correct 8 ms 15948 KB Output is correct
32 Correct 10 ms 15948 KB Output is correct
33 Correct 9 ms 15948 KB Output is correct
34 Correct 9 ms 15972 KB Output is correct
35 Correct 10 ms 15948 KB Output is correct
36 Correct 9 ms 15948 KB Output is correct
37 Correct 9 ms 15948 KB Output is correct
38 Correct 9 ms 15948 KB Output is correct
39 Correct 9 ms 15948 KB Output is correct
40 Correct 9 ms 15948 KB Output is correct
41 Correct 9 ms 15888 KB Output is correct
42 Correct 9 ms 15948 KB Output is correct
43 Correct 10 ms 15948 KB Output is correct
44 Correct 10 ms 15880 KB Output is correct
45 Correct 9 ms 15948 KB Output is correct
46 Correct 9 ms 15884 KB Output is correct
47 Correct 9 ms 15948 KB Output is correct
48 Correct 9 ms 15968 KB Output is correct
49 Correct 9 ms 15896 KB Output is correct
50 Correct 9 ms 15884 KB Output is correct
51 Correct 9 ms 15952 KB Output is correct
52 Correct 9 ms 15948 KB Output is correct
53 Correct 9 ms 15948 KB Output is correct
54 Correct 9 ms 15948 KB Output is correct
55 Correct 9 ms 15884 KB Output is correct
56 Correct 9 ms 15952 KB Output is correct
57 Correct 9 ms 15952 KB Output is correct
58 Correct 10 ms 15948 KB Output is correct
59 Correct 9 ms 15888 KB Output is correct
60 Correct 9 ms 15948 KB Output is correct
61 Correct 9 ms 15948 KB Output is correct
62 Correct 9 ms 15964 KB Output is correct
63 Correct 9 ms 15920 KB Output is correct
64 Correct 9 ms 15892 KB Output is correct
65 Correct 10 ms 15952 KB Output is correct
66 Correct 9 ms 15948 KB Output is correct
67 Correct 9 ms 15884 KB Output is correct
68 Correct 9 ms 15948 KB Output is correct
69 Correct 9 ms 15956 KB Output is correct
70 Correct 9 ms 15864 KB Output is correct
71 Correct 9 ms 15888 KB Output is correct
72 Correct 9 ms 15948 KB Output is correct
73 Correct 9 ms 15948 KB Output is correct
74 Correct 9 ms 15948 KB Output is correct
75 Correct 9 ms 15948 KB Output is correct
76 Correct 9 ms 15888 KB Output is correct
77 Correct 9 ms 15948 KB Output is correct
78 Correct 9 ms 15884 KB Output is correct
79 Correct 9 ms 15884 KB Output is correct
80 Correct 9 ms 15888 KB Output is correct
81 Correct 9 ms 15948 KB Output is correct
82 Correct 9 ms 15948 KB Output is correct
83 Correct 11 ms 15888 KB Output is correct
84 Correct 9 ms 15904 KB Output is correct
85 Correct 9 ms 15920 KB Output is correct
86 Correct 9 ms 15976 KB Output is correct
87 Correct 9 ms 15948 KB Output is correct
88 Correct 9 ms 15884 KB Output is correct
89 Correct 9 ms 15852 KB Output is correct
90 Correct 9 ms 15948 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 9 ms 15948 KB Output is correct
2 Correct 9 ms 15972 KB Output is correct
3 Correct 9 ms 15904 KB Output is correct
4 Correct 9 ms 15948 KB Output is correct
5 Correct 9 ms 15992 KB Output is correct
6 Correct 9 ms 15948 KB Output is correct
7 Correct 9 ms 15948 KB Output is correct
8 Correct 9 ms 15880 KB Output is correct
9 Correct 9 ms 15892 KB Output is correct
10 Correct 9 ms 15948 KB Output is correct
11 Correct 9 ms 15948 KB Output is correct
12 Correct 9 ms 15912 KB Output is correct
13 Correct 9 ms 15884 KB Output is correct
14 Correct 9 ms 15976 KB Output is correct
15 Correct 9 ms 15976 KB Output is correct
16 Correct 9 ms 15888 KB Output is correct
17 Correct 9 ms 16012 KB Output is correct
18 Correct 9 ms 15948 KB Output is correct
19 Correct 9 ms 15948 KB Output is correct
20 Correct 9 ms 15948 KB Output is correct
21 Correct 10 ms 15912 KB Output is correct
22 Correct 9 ms 15948 KB Output is correct
23 Correct 9 ms 15948 KB Output is correct
24 Correct 9 ms 15948 KB Output is correct
25 Correct 9 ms 15944 KB Output is correct
26 Correct 9 ms 15900 KB Output is correct
27 Correct 9 ms 15904 KB Output is correct
28 Correct 9 ms 15908 KB Output is correct
29 Correct 9 ms 15948 KB Output is correct
30 Correct 9 ms 15932 KB Output is correct
31 Correct 8 ms 15948 KB Output is correct
32 Correct 10 ms 15948 KB Output is correct
33 Correct 9 ms 15948 KB Output is correct
34 Correct 9 ms 15972 KB Output is correct
35 Correct 10 ms 15948 KB Output is correct
36 Correct 9 ms 15948 KB Output is correct
37 Correct 9 ms 15948 KB Output is correct
38 Correct 9 ms 15948 KB Output is correct
39 Correct 9 ms 15948 KB Output is correct
40 Correct 9 ms 15948 KB Output is correct
41 Correct 9 ms 15888 KB Output is correct
42 Correct 9 ms 15948 KB Output is correct
43 Correct 10 ms 15948 KB Output is correct
44 Correct 10 ms 15880 KB Output is correct
45 Correct 9 ms 15948 KB Output is correct
46 Correct 9 ms 15884 KB Output is correct
47 Correct 9 ms 15948 KB Output is correct
48 Correct 9 ms 15968 KB Output is correct
49 Correct 9 ms 15896 KB Output is correct
50 Correct 9 ms 15884 KB Output is correct
51 Correct 9 ms 15952 KB Output is correct
52 Correct 9 ms 15948 KB Output is correct
53 Correct 9 ms 15948 KB Output is correct
54 Correct 9 ms 15948 KB Output is correct
55 Correct 9 ms 15884 KB Output is correct
56 Correct 9 ms 15952 KB Output is correct
57 Correct 9 ms 15952 KB Output is correct
58 Correct 10 ms 15948 KB Output is correct
59 Correct 9 ms 15888 KB Output is correct
60 Correct 9 ms 15948 KB Output is correct
61 Correct 9 ms 15948 KB Output is correct
62 Correct 9 ms 15964 KB Output is correct
63 Correct 9 ms 15920 KB Output is correct
64 Correct 9 ms 15892 KB Output is correct
65 Correct 10 ms 15952 KB Output is correct
66 Correct 9 ms 15948 KB Output is correct
67 Correct 9 ms 15884 KB Output is correct
68 Correct 9 ms 15948 KB Output is correct
69 Correct 9 ms 15956 KB Output is correct
70 Correct 9 ms 15864 KB Output is correct
71 Correct 9 ms 15888 KB Output is correct
72 Correct 9 ms 15948 KB Output is correct
73 Correct 9 ms 15948 KB Output is correct
74 Correct 9 ms 15948 KB Output is correct
75 Correct 9 ms 15948 KB Output is correct
76 Correct 9 ms 15888 KB Output is correct
77 Correct 9 ms 15948 KB Output is correct
78 Correct 9 ms 15884 KB Output is correct
79 Correct 9 ms 15884 KB Output is correct
80 Correct 9 ms 15888 KB Output is correct
81 Correct 9 ms 15948 KB Output is correct
82 Correct 9 ms 15948 KB Output is correct
83 Correct 11 ms 15888 KB Output is correct
84 Correct 9 ms 15904 KB Output is correct
85 Correct 9 ms 15920 KB Output is correct
86 Correct 9 ms 15976 KB Output is correct
87 Correct 9 ms 15948 KB Output is correct
88 Correct 9 ms 15884 KB Output is correct
89 Correct 9 ms 15852 KB Output is correct
90 Correct 9 ms 15948 KB Output is correct
91 Correct 10 ms 16076 KB Output is correct
92 Correct 10 ms 16076 KB Output is correct
93 Correct 10 ms 16080 KB Output is correct
94 Correct 10 ms 16028 KB Output is correct
95 Correct 10 ms 16096 KB Output is correct
96 Correct 10 ms 16016 KB Output is correct
97 Correct 11 ms 16076 KB Output is correct
98 Correct 9 ms 15948 KB Output is correct
99 Correct 9 ms 15884 KB Output is correct
100 Correct 9 ms 15980 KB Output is correct
101 Correct 9 ms 16040 KB Output is correct
102 Correct 10 ms 16076 KB Output is correct
103 Correct 9 ms 15948 KB Output is correct
104 Correct 10 ms 16024 KB Output is correct
105 Correct 10 ms 16076 KB Output is correct
106 Correct 10 ms 15948 KB Output is correct
107 Correct 9 ms 15976 KB Output is correct
108 Correct 9 ms 15896 KB Output is correct
109 Correct 9 ms 15864 KB Output is correct
110 Correct 10 ms 15948 KB Output is correct
111 Correct 9 ms 15948 KB Output is correct
112 Correct 10 ms 15948 KB Output is correct
113 Correct 10 ms 16024 KB Output is correct
114 Correct 9 ms 15892 KB Output is correct
115 Correct 10 ms 16076 KB Output is correct
116 Correct 10 ms 16076 KB Output is correct
117 Correct 10 ms 16076 KB Output is correct
118 Correct 10 ms 16080 KB Output is correct
119 Correct 10 ms 16076 KB Output is correct
120 Correct 10 ms 16076 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 9 ms 15948 KB Output is correct
2 Correct 9 ms 15972 KB Output is correct
3 Correct 9 ms 15904 KB Output is correct
4 Correct 9 ms 15948 KB Output is correct
5 Correct 9 ms 15992 KB Output is correct
6 Correct 9 ms 15948 KB Output is correct
7 Correct 9 ms 15948 KB Output is correct
8 Correct 9 ms 15880 KB Output is correct
9 Correct 9 ms 15892 KB Output is correct
10 Correct 9 ms 15948 KB Output is correct
11 Correct 9 ms 15948 KB Output is correct
12 Correct 9 ms 15912 KB Output is correct
13 Correct 9 ms 15884 KB Output is correct
14 Correct 9 ms 15976 KB Output is correct
15 Correct 9 ms 15976 KB Output is correct
16 Correct 9 ms 15888 KB Output is correct
17 Correct 9 ms 16012 KB Output is correct
18 Correct 9 ms 15948 KB Output is correct
19 Correct 9 ms 15948 KB Output is correct
20 Correct 9 ms 15948 KB Output is correct
21 Correct 10 ms 15912 KB Output is correct
22 Correct 9 ms 15948 KB Output is correct
23 Correct 9 ms 15948 KB Output is correct
24 Correct 9 ms 15948 KB Output is correct
25 Correct 9 ms 15944 KB Output is correct
26 Correct 9 ms 15900 KB Output is correct
27 Correct 9 ms 15904 KB Output is correct
28 Correct 9 ms 15908 KB Output is correct
29 Correct 9 ms 15948 KB Output is correct
30 Correct 9 ms 15932 KB Output is correct
31 Correct 8 ms 15948 KB Output is correct
32 Correct 10 ms 15948 KB Output is correct
33 Correct 9 ms 15948 KB Output is correct
34 Correct 9 ms 15972 KB Output is correct
35 Correct 10 ms 15948 KB Output is correct
36 Correct 9 ms 15948 KB Output is correct
37 Correct 9 ms 15948 KB Output is correct
38 Correct 9 ms 15948 KB Output is correct
39 Correct 9 ms 15948 KB Output is correct
40 Correct 9 ms 15948 KB Output is correct
41 Correct 9 ms 15888 KB Output is correct
42 Correct 9 ms 15948 KB Output is correct
43 Correct 10 ms 15948 KB Output is correct
44 Correct 10 ms 15880 KB Output is correct
45 Correct 9 ms 15948 KB Output is correct
46 Correct 9 ms 15884 KB Output is correct
47 Correct 9 ms 15948 KB Output is correct
48 Correct 9 ms 15968 KB Output is correct
49 Correct 9 ms 15896 KB Output is correct
50 Correct 9 ms 15884 KB Output is correct
51 Correct 9 ms 15952 KB Output is correct
52 Correct 9 ms 15948 KB Output is correct
53 Correct 9 ms 15948 KB Output is correct
54 Correct 9 ms 15948 KB Output is correct
55 Correct 9 ms 15884 KB Output is correct
56 Correct 9 ms 15952 KB Output is correct
57 Correct 9 ms 15952 KB Output is correct
58 Correct 10 ms 15948 KB Output is correct
59 Correct 9 ms 15888 KB Output is correct
60 Correct 9 ms 15948 KB Output is correct
61 Correct 9 ms 15948 KB Output is correct
62 Correct 9 ms 15964 KB Output is correct
63 Correct 9 ms 15920 KB Output is correct
64 Correct 9 ms 15892 KB Output is correct
65 Correct 10 ms 15952 KB Output is correct
66 Correct 9 ms 15948 KB Output is correct
67 Correct 9 ms 15884 KB Output is correct
68 Correct 9 ms 15948 KB Output is correct
69 Correct 9 ms 15956 KB Output is correct
70 Correct 9 ms 15864 KB Output is correct
71 Correct 9 ms 15888 KB Output is correct
72 Correct 9 ms 15948 KB Output is correct
73 Correct 9 ms 15948 KB Output is correct
74 Correct 9 ms 15948 KB Output is correct
75 Correct 9 ms 15948 KB Output is correct
76 Correct 9 ms 15888 KB Output is correct
77 Correct 9 ms 15948 KB Output is correct
78 Correct 9 ms 15884 KB Output is correct
79 Correct 9 ms 15884 KB Output is correct
80 Correct 9 ms 15888 KB Output is correct
81 Correct 9 ms 15948 KB Output is correct
82 Correct 9 ms 15948 KB Output is correct
83 Correct 11 ms 15888 KB Output is correct
84 Correct 9 ms 15904 KB Output is correct
85 Correct 9 ms 15920 KB Output is correct
86 Correct 9 ms 15976 KB Output is correct
87 Correct 9 ms 15948 KB Output is correct
88 Correct 9 ms 15884 KB Output is correct
89 Correct 9 ms 15852 KB Output is correct
90 Correct 9 ms 15948 KB Output is correct
91 Correct 10 ms 16076 KB Output is correct
92 Correct 10 ms 16076 KB Output is correct
93 Correct 10 ms 16080 KB Output is correct
94 Correct 10 ms 16028 KB Output is correct
95 Correct 10 ms 16096 KB Output is correct
96 Correct 10 ms 16016 KB Output is correct
97 Correct 11 ms 16076 KB Output is correct
98 Correct 9 ms 15948 KB Output is correct
99 Correct 9 ms 15884 KB Output is correct
100 Correct 9 ms 15980 KB Output is correct
101 Correct 9 ms 16040 KB Output is correct
102 Correct 10 ms 16076 KB Output is correct
103 Correct 9 ms 15948 KB Output is correct
104 Correct 10 ms 16024 KB Output is correct
105 Correct 10 ms 16076 KB Output is correct
106 Correct 10 ms 15948 KB Output is correct
107 Correct 9 ms 15976 KB Output is correct
108 Correct 9 ms 15896 KB Output is correct
109 Correct 9 ms 15864 KB Output is correct
110 Correct 10 ms 15948 KB Output is correct
111 Correct 9 ms 15948 KB Output is correct
112 Correct 10 ms 15948 KB Output is correct
113 Correct 10 ms 16024 KB Output is correct
114 Correct 9 ms 15892 KB Output is correct
115 Correct 10 ms 16076 KB Output is correct
116 Correct 10 ms 16076 KB Output is correct
117 Correct 10 ms 16076 KB Output is correct
118 Correct 10 ms 16080 KB Output is correct
119 Correct 10 ms 16076 KB Output is correct
120 Correct 10 ms 16076 KB Output is correct
121 Execution timed out 1098 ms 259768 KB Time limit exceeded
122 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 9 ms 15948 KB Output is correct
2 Correct 9 ms 15972 KB Output is correct
3 Correct 9 ms 15904 KB Output is correct
4 Correct 9 ms 15948 KB Output is correct
5 Correct 9 ms 15992 KB Output is correct
6 Correct 9 ms 15948 KB Output is correct
7 Correct 9 ms 15948 KB Output is correct
8 Correct 9 ms 15880 KB Output is correct
9 Correct 9 ms 15892 KB Output is correct
10 Correct 9 ms 15948 KB Output is correct
11 Correct 9 ms 15948 KB Output is correct
12 Correct 9 ms 15912 KB Output is correct
13 Correct 9 ms 15884 KB Output is correct
14 Correct 9 ms 15976 KB Output is correct
15 Correct 9 ms 15976 KB Output is correct
16 Correct 9 ms 15888 KB Output is correct
17 Correct 9 ms 16012 KB Output is correct
18 Correct 9 ms 15948 KB Output is correct
19 Correct 9 ms 15948 KB Output is correct
20 Correct 9 ms 15948 KB Output is correct
21 Correct 10 ms 15912 KB Output is correct
22 Correct 9 ms 15948 KB Output is correct
23 Correct 9 ms 15948 KB Output is correct
24 Correct 9 ms 15948 KB Output is correct
25 Correct 9 ms 15944 KB Output is correct
26 Correct 9 ms 15900 KB Output is correct
27 Correct 9 ms 15904 KB Output is correct
28 Correct 9 ms 15908 KB Output is correct
29 Correct 9 ms 15948 KB Output is correct
30 Correct 9 ms 15932 KB Output is correct
31 Correct 8 ms 15948 KB Output is correct
32 Correct 10 ms 15948 KB Output is correct
33 Correct 9 ms 15948 KB Output is correct
34 Correct 9 ms 15972 KB Output is correct
35 Correct 10 ms 15948 KB Output is correct
36 Correct 9 ms 15948 KB Output is correct
37 Correct 9 ms 15948 KB Output is correct
38 Correct 9 ms 15948 KB Output is correct
39 Correct 9 ms 15948 KB Output is correct
40 Correct 9 ms 15948 KB Output is correct
41 Correct 9 ms 15888 KB Output is correct
42 Correct 9 ms 15948 KB Output is correct
43 Correct 10 ms 15948 KB Output is correct
44 Correct 10 ms 15880 KB Output is correct
45 Correct 9 ms 15948 KB Output is correct
46 Correct 9 ms 15884 KB Output is correct
47 Correct 9 ms 15948 KB Output is correct
48 Correct 9 ms 15968 KB Output is correct
49 Correct 9 ms 15896 KB Output is correct
50 Correct 9 ms 15884 KB Output is correct
51 Correct 9 ms 15952 KB Output is correct
52 Correct 9 ms 15948 KB Output is correct
53 Correct 9 ms 15948 KB Output is correct
54 Correct 9 ms 15948 KB Output is correct
55 Correct 9 ms 15884 KB Output is correct
56 Correct 9 ms 15952 KB Output is correct
57 Correct 9 ms 15952 KB Output is correct
58 Correct 10 ms 15948 KB Output is correct
59 Correct 9 ms 15888 KB Output is correct
60 Correct 9 ms 15948 KB Output is correct
61 Correct 9 ms 15948 KB Output is correct
62 Correct 9 ms 15964 KB Output is correct
63 Correct 9 ms 15920 KB Output is correct
64 Correct 9 ms 15892 KB Output is correct
65 Correct 10 ms 15952 KB Output is correct
66 Correct 9 ms 15948 KB Output is correct
67 Correct 9 ms 15884 KB Output is correct
68 Correct 9 ms 15948 KB Output is correct
69 Correct 9 ms 15956 KB Output is correct
70 Correct 9 ms 15864 KB Output is correct
71 Correct 9 ms 15888 KB Output is correct
72 Correct 9 ms 15948 KB Output is correct
73 Correct 9 ms 15948 KB Output is correct
74 Correct 9 ms 15948 KB Output is correct
75 Correct 9 ms 15948 KB Output is correct
76 Correct 9 ms 15888 KB Output is correct
77 Correct 9 ms 15948 KB Output is correct
78 Correct 9 ms 15884 KB Output is correct
79 Correct 9 ms 15884 KB Output is correct
80 Correct 9 ms 15888 KB Output is correct
81 Correct 9 ms 15948 KB Output is correct
82 Correct 9 ms 15948 KB Output is correct
83 Correct 11 ms 15888 KB Output is correct
84 Correct 9 ms 15904 KB Output is correct
85 Correct 9 ms 15920 KB Output is correct
86 Correct 9 ms 15976 KB Output is correct
87 Correct 9 ms 15948 KB Output is correct
88 Correct 9 ms 15884 KB Output is correct
89 Correct 9 ms 15852 KB Output is correct
90 Correct 9 ms 15948 KB Output is correct
91 Correct 10 ms 16076 KB Output is correct
92 Correct 10 ms 16076 KB Output is correct
93 Correct 10 ms 16080 KB Output is correct
94 Correct 10 ms 16028 KB Output is correct
95 Correct 10 ms 16096 KB Output is correct
96 Correct 10 ms 16016 KB Output is correct
97 Correct 11 ms 16076 KB Output is correct
98 Correct 9 ms 15948 KB Output is correct
99 Correct 9 ms 15884 KB Output is correct
100 Correct 9 ms 15980 KB Output is correct
101 Correct 9 ms 16040 KB Output is correct
102 Correct 10 ms 16076 KB Output is correct
103 Correct 9 ms 15948 KB Output is correct
104 Correct 10 ms 16024 KB Output is correct
105 Correct 10 ms 16076 KB Output is correct
106 Correct 10 ms 15948 KB Output is correct
107 Correct 9 ms 15976 KB Output is correct
108 Correct 9 ms 15896 KB Output is correct
109 Correct 9 ms 15864 KB Output is correct
110 Correct 10 ms 15948 KB Output is correct
111 Correct 9 ms 15948 KB Output is correct
112 Correct 10 ms 15948 KB Output is correct
113 Correct 10 ms 16024 KB Output is correct
114 Correct 9 ms 15892 KB Output is correct
115 Correct 10 ms 16076 KB Output is correct
116 Correct 10 ms 16076 KB Output is correct
117 Correct 10 ms 16076 KB Output is correct
118 Correct 10 ms 16080 KB Output is correct
119 Correct 10 ms 16076 KB Output is correct
120 Correct 10 ms 16076 KB Output is correct
121 Execution timed out 1098 ms 259768 KB Time limit exceeded
122 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 9 ms 15948 KB Output is correct
2 Correct 9 ms 15972 KB Output is correct
3 Correct 9 ms 15904 KB Output is correct
4 Correct 9 ms 15948 KB Output is correct
5 Correct 9 ms 15992 KB Output is correct
6 Correct 9 ms 15948 KB Output is correct
7 Correct 9 ms 15948 KB Output is correct
8 Correct 9 ms 15880 KB Output is correct
9 Correct 9 ms 15892 KB Output is correct
10 Correct 9 ms 15948 KB Output is correct
11 Correct 9 ms 15948 KB Output is correct
12 Correct 9 ms 15912 KB Output is correct
13 Correct 9 ms 15884 KB Output is correct
14 Correct 9 ms 15976 KB Output is correct
15 Correct 9 ms 15976 KB Output is correct
16 Correct 9 ms 15888 KB Output is correct
17 Correct 9 ms 16012 KB Output is correct
18 Correct 9 ms 15948 KB Output is correct
19 Correct 9 ms 15948 KB Output is correct
20 Correct 9 ms 15948 KB Output is correct
21 Correct 10 ms 15912 KB Output is correct
22 Correct 9 ms 15948 KB Output is correct
23 Correct 9 ms 15948 KB Output is correct
24 Correct 9 ms 15948 KB Output is correct
25 Correct 9 ms 15944 KB Output is correct
26 Correct 9 ms 15900 KB Output is correct
27 Correct 9 ms 15904 KB Output is correct
28 Correct 9 ms 15908 KB Output is correct
29 Correct 9 ms 15948 KB Output is correct
30 Correct 9 ms 15932 KB Output is correct
31 Correct 8 ms 15948 KB Output is correct
32 Correct 10 ms 15948 KB Output is correct
33 Correct 9 ms 15948 KB Output is correct
34 Correct 9 ms 15972 KB Output is correct
35 Correct 10 ms 15948 KB Output is correct
36 Correct 9 ms 15948 KB Output is correct
37 Correct 9 ms 15948 KB Output is correct
38 Correct 9 ms 15948 KB Output is correct
39 Correct 9 ms 15948 KB Output is correct
40 Correct 9 ms 15948 KB Output is correct
41 Correct 9 ms 15888 KB Output is correct
42 Correct 9 ms 15948 KB Output is correct
43 Correct 10 ms 15948 KB Output is correct
44 Correct 10 ms 15880 KB Output is correct
45 Correct 9 ms 15948 KB Output is correct
46 Correct 9 ms 15884 KB Output is correct
47 Correct 9 ms 15948 KB Output is correct
48 Correct 9 ms 15968 KB Output is correct
49 Correct 9 ms 15896 KB Output is correct
50 Correct 9 ms 15884 KB Output is correct
51 Correct 9 ms 15952 KB Output is correct
52 Correct 9 ms 15948 KB Output is correct
53 Correct 9 ms 15948 KB Output is correct
54 Correct 9 ms 15948 KB Output is correct
55 Correct 9 ms 15884 KB Output is correct
56 Correct 9 ms 15952 KB Output is correct
57 Correct 9 ms 15952 KB Output is correct
58 Correct 10 ms 15948 KB Output is correct
59 Correct 9 ms 15888 KB Output is correct
60 Correct 9 ms 15948 KB Output is correct
61 Correct 9 ms 15948 KB Output is correct
62 Correct 9 ms 15964 KB Output is correct
63 Correct 9 ms 15920 KB Output is correct
64 Correct 9 ms 15892 KB Output is correct
65 Correct 10 ms 15952 KB Output is correct
66 Correct 9 ms 15948 KB Output is correct
67 Correct 9 ms 15884 KB Output is correct
68 Correct 9 ms 15948 KB Output is correct
69 Correct 9 ms 15956 KB Output is correct
70 Correct 9 ms 15864 KB Output is correct
71 Correct 9 ms 15888 KB Output is correct
72 Correct 9 ms 15948 KB Output is correct
73 Correct 9 ms 15948 KB Output is correct
74 Correct 9 ms 15948 KB Output is correct
75 Correct 9 ms 15948 KB Output is correct
76 Correct 9 ms 15888 KB Output is correct
77 Correct 9 ms 15948 KB Output is correct
78 Correct 9 ms 15884 KB Output is correct
79 Correct 9 ms 15884 KB Output is correct
80 Correct 9 ms 15888 KB Output is correct
81 Correct 9 ms 15948 KB Output is correct
82 Correct 9 ms 15948 KB Output is correct
83 Correct 11 ms 15888 KB Output is correct
84 Correct 9 ms 15904 KB Output is correct
85 Correct 9 ms 15920 KB Output is correct
86 Correct 9 ms 15976 KB Output is correct
87 Correct 9 ms 15948 KB Output is correct
88 Correct 9 ms 15884 KB Output is correct
89 Correct 9 ms 15852 KB Output is correct
90 Correct 9 ms 15948 KB Output is correct
91 Correct 10 ms 16076 KB Output is correct
92 Correct 10 ms 16076 KB Output is correct
93 Correct 10 ms 16080 KB Output is correct
94 Correct 10 ms 16028 KB Output is correct
95 Correct 10 ms 16096 KB Output is correct
96 Correct 10 ms 16016 KB Output is correct
97 Correct 11 ms 16076 KB Output is correct
98 Correct 9 ms 15948 KB Output is correct
99 Correct 9 ms 15884 KB Output is correct
100 Correct 9 ms 15980 KB Output is correct
101 Correct 9 ms 16040 KB Output is correct
102 Correct 10 ms 16076 KB Output is correct
103 Correct 9 ms 15948 KB Output is correct
104 Correct 10 ms 16024 KB Output is correct
105 Correct 10 ms 16076 KB Output is correct
106 Correct 10 ms 15948 KB Output is correct
107 Correct 9 ms 15976 KB Output is correct
108 Correct 9 ms 15896 KB Output is correct
109 Correct 9 ms 15864 KB Output is correct
110 Correct 10 ms 15948 KB Output is correct
111 Correct 9 ms 15948 KB Output is correct
112 Correct 10 ms 15948 KB Output is correct
113 Correct 10 ms 16024 KB Output is correct
114 Correct 9 ms 15892 KB Output is correct
115 Correct 10 ms 16076 KB Output is correct
116 Correct 10 ms 16076 KB Output is correct
117 Correct 10 ms 16076 KB Output is correct
118 Correct 10 ms 16080 KB Output is correct
119 Correct 10 ms 16076 KB Output is correct
120 Correct 10 ms 16076 KB Output is correct
121 Execution timed out 1098 ms 259768 KB Time limit exceeded
122 Halted 0 ms 0 KB -