답안 #753290

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
753290 2023-06-05T02:40:03 Z vjudge1 Arcade (NOI20_arcade) C++
100 / 100
423 ms 24448 KB
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
const ll maxn=5e5+7;
ll n, m, t[maxn], a[maxn];
vector <pair <ll, ll>> grid(maxn);
int main(){
	cin >> n >> m;
	for(int i=0; i<m; i++){
		cin >> t[i];
	}
	for(int i=0; i<m; i++){
		cin >> a[i];
	}
	for(int i=0; i<m; i++){
		grid[i]=make_pair(a[i]+t[i], t[i]-a[i]);
	}
	sort(grid.rbegin(), grid.rend());
	vector <ll> dp;
	for (int i = 0; i < m; ++i){
		ll idx = lower_bound(dp.begin(), dp.end(), grid[i].second)-dp.begin();
		if(idx==dp.size()) dp.push_back(grid[i].second);
		else dp[idx]=grid[i].second;
	}
	cout << dp.size() << endl;
	return 0;
}

Compilation message

Arcade.cpp: In function 'int main()':
Arcade.cpp:22:9: warning: comparison of integer expressions of different signedness: 'll' {aka 'long long int'} and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   22 |   if(idx==dp.size()) dp.push_back(grid[i].second);
      |      ~~~^~~~~~~~~~~
# 결과 실행 시간 메모리 Grader output
1 Correct 14 ms 8148 KB Output is correct
2 Correct 14 ms 8172 KB Output is correct
3 Correct 15 ms 8148 KB Output is correct
4 Correct 15 ms 8172 KB Output is correct
5 Correct 14 ms 8148 KB Output is correct
6 Correct 15 ms 8168 KB Output is correct
7 Correct 16 ms 8184 KB Output is correct
8 Correct 15 ms 8168 KB Output is correct
9 Correct 17 ms 8160 KB Output is correct
10 Correct 14 ms 8156 KB Output is correct
11 Correct 16 ms 8160 KB Output is correct
12 Correct 16 ms 8156 KB Output is correct
13 Correct 16 ms 8148 KB Output is correct
14 Correct 15 ms 8148 KB Output is correct
15 Correct 14 ms 8148 KB Output is correct
16 Correct 14 ms 8168 KB Output is correct
17 Correct 14 ms 8168 KB Output is correct
18 Correct 14 ms 8148 KB Output is correct
19 Correct 16 ms 8160 KB Output is correct
20 Correct 15 ms 8148 KB Output is correct
21 Correct 16 ms 8152 KB Output is correct
22 Correct 16 ms 8144 KB Output is correct
23 Correct 16 ms 8148 KB Output is correct
24 Correct 14 ms 8148 KB Output is correct
25 Correct 15 ms 8148 KB Output is correct
26 Correct 15 ms 8276 KB Output is correct
27 Correct 14 ms 8148 KB Output is correct
28 Correct 14 ms 8148 KB Output is correct
29 Correct 15 ms 8076 KB Output is correct
30 Correct 16 ms 8160 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 14 ms 8148 KB Output is correct
2 Correct 14 ms 8172 KB Output is correct
3 Correct 15 ms 8148 KB Output is correct
4 Correct 15 ms 8172 KB Output is correct
5 Correct 14 ms 8148 KB Output is correct
6 Correct 15 ms 8168 KB Output is correct
7 Correct 16 ms 8184 KB Output is correct
8 Correct 15 ms 8168 KB Output is correct
9 Correct 17 ms 8160 KB Output is correct
10 Correct 14 ms 8156 KB Output is correct
11 Correct 16 ms 8160 KB Output is correct
12 Correct 16 ms 8156 KB Output is correct
13 Correct 16 ms 8148 KB Output is correct
14 Correct 15 ms 8148 KB Output is correct
15 Correct 14 ms 8148 KB Output is correct
16 Correct 14 ms 8168 KB Output is correct
17 Correct 14 ms 8168 KB Output is correct
18 Correct 14 ms 8148 KB Output is correct
19 Correct 16 ms 8160 KB Output is correct
20 Correct 15 ms 8148 KB Output is correct
21 Correct 16 ms 8152 KB Output is correct
22 Correct 16 ms 8144 KB Output is correct
23 Correct 16 ms 8148 KB Output is correct
24 Correct 14 ms 8148 KB Output is correct
25 Correct 15 ms 8148 KB Output is correct
26 Correct 15 ms 8276 KB Output is correct
27 Correct 14 ms 8148 KB Output is correct
28 Correct 14 ms 8148 KB Output is correct
29 Correct 15 ms 8076 KB Output is correct
30 Correct 16 ms 8160 KB Output is correct
31 Correct 19 ms 8148 KB Output is correct
32 Correct 15 ms 8164 KB Output is correct
33 Correct 17 ms 8156 KB Output is correct
34 Correct 15 ms 8148 KB Output is correct
35 Correct 15 ms 8172 KB Output is correct
36 Correct 15 ms 8148 KB Output is correct
37 Correct 16 ms 8164 KB Output is correct
38 Correct 14 ms 8168 KB Output is correct
39 Correct 16 ms 8148 KB Output is correct
40 Correct 15 ms 8148 KB Output is correct
41 Correct 15 ms 8152 KB Output is correct
42 Correct 15 ms 8148 KB Output is correct
43 Correct 15 ms 8152 KB Output is correct
44 Correct 14 ms 8148 KB Output is correct
45 Correct 15 ms 8152 KB Output is correct
46 Correct 15 ms 8152 KB Output is correct
47 Correct 16 ms 8164 KB Output is correct
48 Correct 15 ms 8168 KB Output is correct
49 Correct 16 ms 8148 KB Output is correct
50 Correct 14 ms 8168 KB Output is correct
51 Correct 15 ms 8164 KB Output is correct
52 Correct 16 ms 8164 KB Output is correct
53 Correct 17 ms 8168 KB Output is correct
54 Correct 17 ms 8156 KB Output is correct
55 Correct 14 ms 8172 KB Output is correct
56 Correct 15 ms 8148 KB Output is correct
57 Correct 16 ms 8128 KB Output is correct
58 Correct 14 ms 8168 KB Output is correct
59 Correct 14 ms 8156 KB Output is correct
60 Correct 17 ms 8148 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 14 ms 8148 KB Output is correct
2 Correct 14 ms 8172 KB Output is correct
3 Correct 15 ms 8148 KB Output is correct
4 Correct 15 ms 8172 KB Output is correct
5 Correct 14 ms 8148 KB Output is correct
6 Correct 15 ms 8168 KB Output is correct
7 Correct 16 ms 8184 KB Output is correct
8 Correct 15 ms 8168 KB Output is correct
9 Correct 17 ms 8160 KB Output is correct
10 Correct 14 ms 8156 KB Output is correct
11 Correct 16 ms 8160 KB Output is correct
12 Correct 16 ms 8156 KB Output is correct
13 Correct 16 ms 8148 KB Output is correct
14 Correct 15 ms 8148 KB Output is correct
15 Correct 14 ms 8148 KB Output is correct
16 Correct 14 ms 8168 KB Output is correct
17 Correct 14 ms 8168 KB Output is correct
18 Correct 14 ms 8148 KB Output is correct
19 Correct 16 ms 8160 KB Output is correct
20 Correct 15 ms 8148 KB Output is correct
21 Correct 16 ms 8152 KB Output is correct
22 Correct 16 ms 8144 KB Output is correct
23 Correct 16 ms 8148 KB Output is correct
24 Correct 14 ms 8148 KB Output is correct
25 Correct 15 ms 8148 KB Output is correct
26 Correct 15 ms 8276 KB Output is correct
27 Correct 14 ms 8148 KB Output is correct
28 Correct 14 ms 8148 KB Output is correct
29 Correct 15 ms 8076 KB Output is correct
30 Correct 16 ms 8160 KB Output is correct
31 Correct 19 ms 8148 KB Output is correct
32 Correct 15 ms 8164 KB Output is correct
33 Correct 17 ms 8156 KB Output is correct
34 Correct 15 ms 8148 KB Output is correct
35 Correct 15 ms 8172 KB Output is correct
36 Correct 15 ms 8148 KB Output is correct
37 Correct 16 ms 8164 KB Output is correct
38 Correct 14 ms 8168 KB Output is correct
39 Correct 16 ms 8148 KB Output is correct
40 Correct 15 ms 8148 KB Output is correct
41 Correct 15 ms 8152 KB Output is correct
42 Correct 15 ms 8148 KB Output is correct
43 Correct 15 ms 8152 KB Output is correct
44 Correct 14 ms 8148 KB Output is correct
45 Correct 15 ms 8152 KB Output is correct
46 Correct 15 ms 8152 KB Output is correct
47 Correct 16 ms 8164 KB Output is correct
48 Correct 15 ms 8168 KB Output is correct
49 Correct 16 ms 8148 KB Output is correct
50 Correct 14 ms 8168 KB Output is correct
51 Correct 15 ms 8164 KB Output is correct
52 Correct 16 ms 8164 KB Output is correct
53 Correct 17 ms 8168 KB Output is correct
54 Correct 17 ms 8156 KB Output is correct
55 Correct 14 ms 8172 KB Output is correct
56 Correct 15 ms 8148 KB Output is correct
57 Correct 16 ms 8128 KB Output is correct
58 Correct 14 ms 8168 KB Output is correct
59 Correct 14 ms 8156 KB Output is correct
60 Correct 17 ms 8148 KB Output is correct
61 Correct 15 ms 8168 KB Output is correct
62 Correct 18 ms 8156 KB Output is correct
63 Correct 15 ms 8148 KB Output is correct
64 Correct 16 ms 8156 KB Output is correct
65 Correct 18 ms 8148 KB Output is correct
66 Correct 15 ms 8148 KB Output is correct
67 Correct 14 ms 8148 KB Output is correct
68 Correct 15 ms 8164 KB Output is correct
69 Correct 14 ms 8156 KB Output is correct
70 Correct 15 ms 8148 KB Output is correct
71 Correct 15 ms 8156 KB Output is correct
72 Correct 17 ms 8276 KB Output is correct
73 Correct 16 ms 8164 KB Output is correct
74 Correct 15 ms 8172 KB Output is correct
75 Correct 15 ms 8160 KB Output is correct
76 Correct 16 ms 8164 KB Output is correct
77 Correct 20 ms 8148 KB Output is correct
78 Correct 16 ms 8148 KB Output is correct
79 Correct 18 ms 8164 KB Output is correct
80 Correct 15 ms 8148 KB Output is correct
81 Correct 17 ms 8148 KB Output is correct
82 Correct 16 ms 8152 KB Output is correct
83 Correct 17 ms 8148 KB Output is correct
84 Correct 17 ms 8156 KB Output is correct
85 Correct 15 ms 8164 KB Output is correct
86 Correct 14 ms 8168 KB Output is correct
87 Correct 14 ms 8164 KB Output is correct
88 Correct 15 ms 8156 KB Output is correct
89 Correct 15 ms 8148 KB Output is correct
90 Correct 16 ms 8148 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 14 ms 8148 KB Output is correct
2 Correct 14 ms 8172 KB Output is correct
3 Correct 15 ms 8148 KB Output is correct
4 Correct 15 ms 8172 KB Output is correct
5 Correct 14 ms 8148 KB Output is correct
6 Correct 15 ms 8168 KB Output is correct
7 Correct 16 ms 8184 KB Output is correct
8 Correct 15 ms 8168 KB Output is correct
9 Correct 17 ms 8160 KB Output is correct
10 Correct 14 ms 8156 KB Output is correct
11 Correct 16 ms 8160 KB Output is correct
12 Correct 16 ms 8156 KB Output is correct
13 Correct 16 ms 8148 KB Output is correct
14 Correct 15 ms 8148 KB Output is correct
15 Correct 14 ms 8148 KB Output is correct
16 Correct 14 ms 8168 KB Output is correct
17 Correct 14 ms 8168 KB Output is correct
18 Correct 14 ms 8148 KB Output is correct
19 Correct 16 ms 8160 KB Output is correct
20 Correct 15 ms 8148 KB Output is correct
21 Correct 16 ms 8152 KB Output is correct
22 Correct 16 ms 8144 KB Output is correct
23 Correct 16 ms 8148 KB Output is correct
24 Correct 14 ms 8148 KB Output is correct
25 Correct 15 ms 8148 KB Output is correct
26 Correct 15 ms 8276 KB Output is correct
27 Correct 14 ms 8148 KB Output is correct
28 Correct 14 ms 8148 KB Output is correct
29 Correct 15 ms 8076 KB Output is correct
30 Correct 16 ms 8160 KB Output is correct
31 Correct 19 ms 8148 KB Output is correct
32 Correct 15 ms 8164 KB Output is correct
33 Correct 17 ms 8156 KB Output is correct
34 Correct 15 ms 8148 KB Output is correct
35 Correct 15 ms 8172 KB Output is correct
36 Correct 15 ms 8148 KB Output is correct
37 Correct 16 ms 8164 KB Output is correct
38 Correct 14 ms 8168 KB Output is correct
39 Correct 16 ms 8148 KB Output is correct
40 Correct 15 ms 8148 KB Output is correct
41 Correct 15 ms 8152 KB Output is correct
42 Correct 15 ms 8148 KB Output is correct
43 Correct 15 ms 8152 KB Output is correct
44 Correct 14 ms 8148 KB Output is correct
45 Correct 15 ms 8152 KB Output is correct
46 Correct 15 ms 8152 KB Output is correct
47 Correct 16 ms 8164 KB Output is correct
48 Correct 15 ms 8168 KB Output is correct
49 Correct 16 ms 8148 KB Output is correct
50 Correct 14 ms 8168 KB Output is correct
51 Correct 15 ms 8164 KB Output is correct
52 Correct 16 ms 8164 KB Output is correct
53 Correct 17 ms 8168 KB Output is correct
54 Correct 17 ms 8156 KB Output is correct
55 Correct 14 ms 8172 KB Output is correct
56 Correct 15 ms 8148 KB Output is correct
57 Correct 16 ms 8128 KB Output is correct
58 Correct 14 ms 8168 KB Output is correct
59 Correct 14 ms 8156 KB Output is correct
60 Correct 17 ms 8148 KB Output is correct
61 Correct 15 ms 8168 KB Output is correct
62 Correct 18 ms 8156 KB Output is correct
63 Correct 15 ms 8148 KB Output is correct
64 Correct 16 ms 8156 KB Output is correct
65 Correct 18 ms 8148 KB Output is correct
66 Correct 15 ms 8148 KB Output is correct
67 Correct 14 ms 8148 KB Output is correct
68 Correct 15 ms 8164 KB Output is correct
69 Correct 14 ms 8156 KB Output is correct
70 Correct 15 ms 8148 KB Output is correct
71 Correct 15 ms 8156 KB Output is correct
72 Correct 17 ms 8276 KB Output is correct
73 Correct 16 ms 8164 KB Output is correct
74 Correct 15 ms 8172 KB Output is correct
75 Correct 15 ms 8160 KB Output is correct
76 Correct 16 ms 8164 KB Output is correct
77 Correct 20 ms 8148 KB Output is correct
78 Correct 16 ms 8148 KB Output is correct
79 Correct 18 ms 8164 KB Output is correct
80 Correct 15 ms 8148 KB Output is correct
81 Correct 17 ms 8148 KB Output is correct
82 Correct 16 ms 8152 KB Output is correct
83 Correct 17 ms 8148 KB Output is correct
84 Correct 17 ms 8156 KB Output is correct
85 Correct 15 ms 8164 KB Output is correct
86 Correct 14 ms 8168 KB Output is correct
87 Correct 14 ms 8164 KB Output is correct
88 Correct 15 ms 8156 KB Output is correct
89 Correct 15 ms 8148 KB Output is correct
90 Correct 16 ms 8148 KB Output is correct
91 Correct 20 ms 8176 KB Output is correct
92 Correct 17 ms 8168 KB Output is correct
93 Correct 17 ms 8148 KB Output is correct
94 Correct 14 ms 8160 KB Output is correct
95 Correct 15 ms 8160 KB Output is correct
96 Correct 16 ms 8148 KB Output is correct
97 Correct 17 ms 8112 KB Output is correct
98 Correct 17 ms 8156 KB Output is correct
99 Correct 19 ms 8288 KB Output is correct
100 Correct 15 ms 8172 KB Output is correct
101 Correct 14 ms 8164 KB Output is correct
102 Correct 15 ms 8160 KB Output is correct
103 Correct 15 ms 8168 KB Output is correct
104 Correct 16 ms 8148 KB Output is correct
105 Correct 16 ms 8148 KB Output is correct
106 Correct 14 ms 8148 KB Output is correct
107 Correct 14 ms 8172 KB Output is correct
108 Correct 14 ms 8160 KB Output is correct
109 Correct 16 ms 8148 KB Output is correct
110 Correct 14 ms 8148 KB Output is correct
111 Correct 15 ms 8148 KB Output is correct
112 Correct 15 ms 8148 KB Output is correct
113 Correct 15 ms 8148 KB Output is correct
114 Correct 19 ms 8160 KB Output is correct
115 Correct 24 ms 8168 KB Output is correct
116 Correct 21 ms 8160 KB Output is correct
117 Correct 16 ms 8148 KB Output is correct
118 Correct 19 ms 8148 KB Output is correct
119 Correct 16 ms 8148 KB Output is correct
120 Correct 16 ms 8152 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 14 ms 8148 KB Output is correct
2 Correct 14 ms 8172 KB Output is correct
3 Correct 15 ms 8148 KB Output is correct
4 Correct 15 ms 8172 KB Output is correct
5 Correct 14 ms 8148 KB Output is correct
6 Correct 15 ms 8168 KB Output is correct
7 Correct 16 ms 8184 KB Output is correct
8 Correct 15 ms 8168 KB Output is correct
9 Correct 17 ms 8160 KB Output is correct
10 Correct 14 ms 8156 KB Output is correct
11 Correct 16 ms 8160 KB Output is correct
12 Correct 16 ms 8156 KB Output is correct
13 Correct 16 ms 8148 KB Output is correct
14 Correct 15 ms 8148 KB Output is correct
15 Correct 14 ms 8148 KB Output is correct
16 Correct 14 ms 8168 KB Output is correct
17 Correct 14 ms 8168 KB Output is correct
18 Correct 14 ms 8148 KB Output is correct
19 Correct 16 ms 8160 KB Output is correct
20 Correct 15 ms 8148 KB Output is correct
21 Correct 16 ms 8152 KB Output is correct
22 Correct 16 ms 8144 KB Output is correct
23 Correct 16 ms 8148 KB Output is correct
24 Correct 14 ms 8148 KB Output is correct
25 Correct 15 ms 8148 KB Output is correct
26 Correct 15 ms 8276 KB Output is correct
27 Correct 14 ms 8148 KB Output is correct
28 Correct 14 ms 8148 KB Output is correct
29 Correct 15 ms 8076 KB Output is correct
30 Correct 16 ms 8160 KB Output is correct
31 Correct 19 ms 8148 KB Output is correct
32 Correct 15 ms 8164 KB Output is correct
33 Correct 17 ms 8156 KB Output is correct
34 Correct 15 ms 8148 KB Output is correct
35 Correct 15 ms 8172 KB Output is correct
36 Correct 15 ms 8148 KB Output is correct
37 Correct 16 ms 8164 KB Output is correct
38 Correct 14 ms 8168 KB Output is correct
39 Correct 16 ms 8148 KB Output is correct
40 Correct 15 ms 8148 KB Output is correct
41 Correct 15 ms 8152 KB Output is correct
42 Correct 15 ms 8148 KB Output is correct
43 Correct 15 ms 8152 KB Output is correct
44 Correct 14 ms 8148 KB Output is correct
45 Correct 15 ms 8152 KB Output is correct
46 Correct 15 ms 8152 KB Output is correct
47 Correct 16 ms 8164 KB Output is correct
48 Correct 15 ms 8168 KB Output is correct
49 Correct 16 ms 8148 KB Output is correct
50 Correct 14 ms 8168 KB Output is correct
51 Correct 15 ms 8164 KB Output is correct
52 Correct 16 ms 8164 KB Output is correct
53 Correct 17 ms 8168 KB Output is correct
54 Correct 17 ms 8156 KB Output is correct
55 Correct 14 ms 8172 KB Output is correct
56 Correct 15 ms 8148 KB Output is correct
57 Correct 16 ms 8128 KB Output is correct
58 Correct 14 ms 8168 KB Output is correct
59 Correct 14 ms 8156 KB Output is correct
60 Correct 17 ms 8148 KB Output is correct
61 Correct 15 ms 8168 KB Output is correct
62 Correct 18 ms 8156 KB Output is correct
63 Correct 15 ms 8148 KB Output is correct
64 Correct 16 ms 8156 KB Output is correct
65 Correct 18 ms 8148 KB Output is correct
66 Correct 15 ms 8148 KB Output is correct
67 Correct 14 ms 8148 KB Output is correct
68 Correct 15 ms 8164 KB Output is correct
69 Correct 14 ms 8156 KB Output is correct
70 Correct 15 ms 8148 KB Output is correct
71 Correct 15 ms 8156 KB Output is correct
72 Correct 17 ms 8276 KB Output is correct
73 Correct 16 ms 8164 KB Output is correct
74 Correct 15 ms 8172 KB Output is correct
75 Correct 15 ms 8160 KB Output is correct
76 Correct 16 ms 8164 KB Output is correct
77 Correct 20 ms 8148 KB Output is correct
78 Correct 16 ms 8148 KB Output is correct
79 Correct 18 ms 8164 KB Output is correct
80 Correct 15 ms 8148 KB Output is correct
81 Correct 17 ms 8148 KB Output is correct
82 Correct 16 ms 8152 KB Output is correct
83 Correct 17 ms 8148 KB Output is correct
84 Correct 17 ms 8156 KB Output is correct
85 Correct 15 ms 8164 KB Output is correct
86 Correct 14 ms 8168 KB Output is correct
87 Correct 14 ms 8164 KB Output is correct
88 Correct 15 ms 8156 KB Output is correct
89 Correct 15 ms 8148 KB Output is correct
90 Correct 16 ms 8148 KB Output is correct
91 Correct 20 ms 8176 KB Output is correct
92 Correct 17 ms 8168 KB Output is correct
93 Correct 17 ms 8148 KB Output is correct
94 Correct 14 ms 8160 KB Output is correct
95 Correct 15 ms 8160 KB Output is correct
96 Correct 16 ms 8148 KB Output is correct
97 Correct 17 ms 8112 KB Output is correct
98 Correct 17 ms 8156 KB Output is correct
99 Correct 19 ms 8288 KB Output is correct
100 Correct 15 ms 8172 KB Output is correct
101 Correct 14 ms 8164 KB Output is correct
102 Correct 15 ms 8160 KB Output is correct
103 Correct 15 ms 8168 KB Output is correct
104 Correct 16 ms 8148 KB Output is correct
105 Correct 16 ms 8148 KB Output is correct
106 Correct 14 ms 8148 KB Output is correct
107 Correct 14 ms 8172 KB Output is correct
108 Correct 14 ms 8160 KB Output is correct
109 Correct 16 ms 8148 KB Output is correct
110 Correct 14 ms 8148 KB Output is correct
111 Correct 15 ms 8148 KB Output is correct
112 Correct 15 ms 8148 KB Output is correct
113 Correct 15 ms 8148 KB Output is correct
114 Correct 19 ms 8160 KB Output is correct
115 Correct 24 ms 8168 KB Output is correct
116 Correct 21 ms 8160 KB Output is correct
117 Correct 16 ms 8148 KB Output is correct
118 Correct 19 ms 8148 KB Output is correct
119 Correct 16 ms 8148 KB Output is correct
120 Correct 16 ms 8152 KB Output is correct
121 Correct 25 ms 8540 KB Output is correct
122 Correct 24 ms 8524 KB Output is correct
123 Correct 25 ms 8508 KB Output is correct
124 Correct 31 ms 8636 KB Output is correct
125 Correct 25 ms 8548 KB Output is correct
126 Correct 25 ms 8528 KB Output is correct
127 Correct 23 ms 8420 KB Output is correct
128 Correct 23 ms 8540 KB Output is correct
129 Correct 18 ms 8276 KB Output is correct
130 Correct 14 ms 8148 KB Output is correct
131 Correct 22 ms 8428 KB Output is correct
132 Correct 24 ms 8532 KB Output is correct
133 Correct 20 ms 8148 KB Output is correct
134 Correct 27 ms 8532 KB Output is correct
135 Correct 15 ms 8200 KB Output is correct
136 Correct 27 ms 8780 KB Output is correct
137 Correct 30 ms 8716 KB Output is correct
138 Correct 27 ms 8780 KB Output is correct
139 Correct 24 ms 8792 KB Output is correct
140 Correct 26 ms 8780 KB Output is correct
141 Correct 25 ms 8780 KB Output is correct
142 Correct 24 ms 8732 KB Output is correct
143 Correct 23 ms 8540 KB Output is correct
144 Correct 24 ms 8800 KB Output is correct
145 Correct 23 ms 8532 KB Output is correct
146 Correct 26 ms 8476 KB Output is correct
147 Correct 27 ms 8420 KB Output is correct
148 Correct 24 ms 8552 KB Output is correct
149 Correct 29 ms 8532 KB Output is correct
150 Correct 23 ms 8424 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 14 ms 8148 KB Output is correct
2 Correct 14 ms 8172 KB Output is correct
3 Correct 15 ms 8148 KB Output is correct
4 Correct 15 ms 8172 KB Output is correct
5 Correct 14 ms 8148 KB Output is correct
6 Correct 15 ms 8168 KB Output is correct
7 Correct 16 ms 8184 KB Output is correct
8 Correct 15 ms 8168 KB Output is correct
9 Correct 17 ms 8160 KB Output is correct
10 Correct 14 ms 8156 KB Output is correct
11 Correct 16 ms 8160 KB Output is correct
12 Correct 16 ms 8156 KB Output is correct
13 Correct 16 ms 8148 KB Output is correct
14 Correct 15 ms 8148 KB Output is correct
15 Correct 14 ms 8148 KB Output is correct
16 Correct 14 ms 8168 KB Output is correct
17 Correct 14 ms 8168 KB Output is correct
18 Correct 14 ms 8148 KB Output is correct
19 Correct 16 ms 8160 KB Output is correct
20 Correct 15 ms 8148 KB Output is correct
21 Correct 16 ms 8152 KB Output is correct
22 Correct 16 ms 8144 KB Output is correct
23 Correct 16 ms 8148 KB Output is correct
24 Correct 14 ms 8148 KB Output is correct
25 Correct 15 ms 8148 KB Output is correct
26 Correct 15 ms 8276 KB Output is correct
27 Correct 14 ms 8148 KB Output is correct
28 Correct 14 ms 8148 KB Output is correct
29 Correct 15 ms 8076 KB Output is correct
30 Correct 16 ms 8160 KB Output is correct
31 Correct 19 ms 8148 KB Output is correct
32 Correct 15 ms 8164 KB Output is correct
33 Correct 17 ms 8156 KB Output is correct
34 Correct 15 ms 8148 KB Output is correct
35 Correct 15 ms 8172 KB Output is correct
36 Correct 15 ms 8148 KB Output is correct
37 Correct 16 ms 8164 KB Output is correct
38 Correct 14 ms 8168 KB Output is correct
39 Correct 16 ms 8148 KB Output is correct
40 Correct 15 ms 8148 KB Output is correct
41 Correct 15 ms 8152 KB Output is correct
42 Correct 15 ms 8148 KB Output is correct
43 Correct 15 ms 8152 KB Output is correct
44 Correct 14 ms 8148 KB Output is correct
45 Correct 15 ms 8152 KB Output is correct
46 Correct 15 ms 8152 KB Output is correct
47 Correct 16 ms 8164 KB Output is correct
48 Correct 15 ms 8168 KB Output is correct
49 Correct 16 ms 8148 KB Output is correct
50 Correct 14 ms 8168 KB Output is correct
51 Correct 15 ms 8164 KB Output is correct
52 Correct 16 ms 8164 KB Output is correct
53 Correct 17 ms 8168 KB Output is correct
54 Correct 17 ms 8156 KB Output is correct
55 Correct 14 ms 8172 KB Output is correct
56 Correct 15 ms 8148 KB Output is correct
57 Correct 16 ms 8128 KB Output is correct
58 Correct 14 ms 8168 KB Output is correct
59 Correct 14 ms 8156 KB Output is correct
60 Correct 17 ms 8148 KB Output is correct
61 Correct 15 ms 8168 KB Output is correct
62 Correct 18 ms 8156 KB Output is correct
63 Correct 15 ms 8148 KB Output is correct
64 Correct 16 ms 8156 KB Output is correct
65 Correct 18 ms 8148 KB Output is correct
66 Correct 15 ms 8148 KB Output is correct
67 Correct 14 ms 8148 KB Output is correct
68 Correct 15 ms 8164 KB Output is correct
69 Correct 14 ms 8156 KB Output is correct
70 Correct 15 ms 8148 KB Output is correct
71 Correct 15 ms 8156 KB Output is correct
72 Correct 17 ms 8276 KB Output is correct
73 Correct 16 ms 8164 KB Output is correct
74 Correct 15 ms 8172 KB Output is correct
75 Correct 15 ms 8160 KB Output is correct
76 Correct 16 ms 8164 KB Output is correct
77 Correct 20 ms 8148 KB Output is correct
78 Correct 16 ms 8148 KB Output is correct
79 Correct 18 ms 8164 KB Output is correct
80 Correct 15 ms 8148 KB Output is correct
81 Correct 17 ms 8148 KB Output is correct
82 Correct 16 ms 8152 KB Output is correct
83 Correct 17 ms 8148 KB Output is correct
84 Correct 17 ms 8156 KB Output is correct
85 Correct 15 ms 8164 KB Output is correct
86 Correct 14 ms 8168 KB Output is correct
87 Correct 14 ms 8164 KB Output is correct
88 Correct 15 ms 8156 KB Output is correct
89 Correct 15 ms 8148 KB Output is correct
90 Correct 16 ms 8148 KB Output is correct
91 Correct 20 ms 8176 KB Output is correct
92 Correct 17 ms 8168 KB Output is correct
93 Correct 17 ms 8148 KB Output is correct
94 Correct 14 ms 8160 KB Output is correct
95 Correct 15 ms 8160 KB Output is correct
96 Correct 16 ms 8148 KB Output is correct
97 Correct 17 ms 8112 KB Output is correct
98 Correct 17 ms 8156 KB Output is correct
99 Correct 19 ms 8288 KB Output is correct
100 Correct 15 ms 8172 KB Output is correct
101 Correct 14 ms 8164 KB Output is correct
102 Correct 15 ms 8160 KB Output is correct
103 Correct 15 ms 8168 KB Output is correct
104 Correct 16 ms 8148 KB Output is correct
105 Correct 16 ms 8148 KB Output is correct
106 Correct 14 ms 8148 KB Output is correct
107 Correct 14 ms 8172 KB Output is correct
108 Correct 14 ms 8160 KB Output is correct
109 Correct 16 ms 8148 KB Output is correct
110 Correct 14 ms 8148 KB Output is correct
111 Correct 15 ms 8148 KB Output is correct
112 Correct 15 ms 8148 KB Output is correct
113 Correct 15 ms 8148 KB Output is correct
114 Correct 19 ms 8160 KB Output is correct
115 Correct 24 ms 8168 KB Output is correct
116 Correct 21 ms 8160 KB Output is correct
117 Correct 16 ms 8148 KB Output is correct
118 Correct 19 ms 8148 KB Output is correct
119 Correct 16 ms 8148 KB Output is correct
120 Correct 16 ms 8152 KB Output is correct
121 Correct 25 ms 8540 KB Output is correct
122 Correct 24 ms 8524 KB Output is correct
123 Correct 25 ms 8508 KB Output is correct
124 Correct 31 ms 8636 KB Output is correct
125 Correct 25 ms 8548 KB Output is correct
126 Correct 25 ms 8528 KB Output is correct
127 Correct 23 ms 8420 KB Output is correct
128 Correct 23 ms 8540 KB Output is correct
129 Correct 18 ms 8276 KB Output is correct
130 Correct 14 ms 8148 KB Output is correct
131 Correct 22 ms 8428 KB Output is correct
132 Correct 24 ms 8532 KB Output is correct
133 Correct 20 ms 8148 KB Output is correct
134 Correct 27 ms 8532 KB Output is correct
135 Correct 15 ms 8200 KB Output is correct
136 Correct 27 ms 8780 KB Output is correct
137 Correct 30 ms 8716 KB Output is correct
138 Correct 27 ms 8780 KB Output is correct
139 Correct 24 ms 8792 KB Output is correct
140 Correct 26 ms 8780 KB Output is correct
141 Correct 25 ms 8780 KB Output is correct
142 Correct 24 ms 8732 KB Output is correct
143 Correct 23 ms 8540 KB Output is correct
144 Correct 24 ms 8800 KB Output is correct
145 Correct 23 ms 8532 KB Output is correct
146 Correct 26 ms 8476 KB Output is correct
147 Correct 27 ms 8420 KB Output is correct
148 Correct 24 ms 8552 KB Output is correct
149 Correct 29 ms 8532 KB Output is correct
150 Correct 23 ms 8424 KB Output is correct
151 Correct 97 ms 11352 KB Output is correct
152 Correct 91 ms 11324 KB Output is correct
153 Correct 94 ms 11436 KB Output is correct
154 Correct 98 ms 11524 KB Output is correct
155 Correct 115 ms 11420 KB Output is correct
156 Correct 98 ms 11416 KB Output is correct
157 Correct 103 ms 11480 KB Output is correct
158 Correct 16 ms 8232 KB Output is correct
159 Correct 73 ms 10700 KB Output is correct
160 Correct 79 ms 10984 KB Output is correct
161 Correct 60 ms 9932 KB Output is correct
162 Correct 106 ms 11528 KB Output is correct
163 Correct 53 ms 9676 KB Output is correct
164 Correct 37 ms 9036 KB Output is correct
165 Correct 52 ms 9840 KB Output is correct
166 Correct 92 ms 12580 KB Output is correct
167 Correct 97 ms 12632 KB Output is correct
168 Correct 94 ms 12704 KB Output is correct
169 Correct 96 ms 12752 KB Output is correct
170 Correct 89 ms 12596 KB Output is correct
171 Correct 94 ms 12612 KB Output is correct
172 Correct 95 ms 12652 KB Output is correct
173 Correct 103 ms 11536 KB Output is correct
174 Correct 119 ms 12648 KB Output is correct
175 Correct 103 ms 11596 KB Output is correct
176 Correct 95 ms 11608 KB Output is correct
177 Correct 93 ms 11320 KB Output is correct
178 Correct 99 ms 11320 KB Output is correct
179 Correct 101 ms 11296 KB Output is correct
180 Correct 98 ms 11632 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 14 ms 8148 KB Output is correct
2 Correct 14 ms 8172 KB Output is correct
3 Correct 15 ms 8148 KB Output is correct
4 Correct 15 ms 8172 KB Output is correct
5 Correct 14 ms 8148 KB Output is correct
6 Correct 15 ms 8168 KB Output is correct
7 Correct 16 ms 8184 KB Output is correct
8 Correct 15 ms 8168 KB Output is correct
9 Correct 17 ms 8160 KB Output is correct
10 Correct 14 ms 8156 KB Output is correct
11 Correct 16 ms 8160 KB Output is correct
12 Correct 16 ms 8156 KB Output is correct
13 Correct 16 ms 8148 KB Output is correct
14 Correct 15 ms 8148 KB Output is correct
15 Correct 14 ms 8148 KB Output is correct
16 Correct 14 ms 8168 KB Output is correct
17 Correct 14 ms 8168 KB Output is correct
18 Correct 14 ms 8148 KB Output is correct
19 Correct 16 ms 8160 KB Output is correct
20 Correct 15 ms 8148 KB Output is correct
21 Correct 16 ms 8152 KB Output is correct
22 Correct 16 ms 8144 KB Output is correct
23 Correct 16 ms 8148 KB Output is correct
24 Correct 14 ms 8148 KB Output is correct
25 Correct 15 ms 8148 KB Output is correct
26 Correct 15 ms 8276 KB Output is correct
27 Correct 14 ms 8148 KB Output is correct
28 Correct 14 ms 8148 KB Output is correct
29 Correct 15 ms 8076 KB Output is correct
30 Correct 16 ms 8160 KB Output is correct
31 Correct 19 ms 8148 KB Output is correct
32 Correct 15 ms 8164 KB Output is correct
33 Correct 17 ms 8156 KB Output is correct
34 Correct 15 ms 8148 KB Output is correct
35 Correct 15 ms 8172 KB Output is correct
36 Correct 15 ms 8148 KB Output is correct
37 Correct 16 ms 8164 KB Output is correct
38 Correct 14 ms 8168 KB Output is correct
39 Correct 16 ms 8148 KB Output is correct
40 Correct 15 ms 8148 KB Output is correct
41 Correct 15 ms 8152 KB Output is correct
42 Correct 15 ms 8148 KB Output is correct
43 Correct 15 ms 8152 KB Output is correct
44 Correct 14 ms 8148 KB Output is correct
45 Correct 15 ms 8152 KB Output is correct
46 Correct 15 ms 8152 KB Output is correct
47 Correct 16 ms 8164 KB Output is correct
48 Correct 15 ms 8168 KB Output is correct
49 Correct 16 ms 8148 KB Output is correct
50 Correct 14 ms 8168 KB Output is correct
51 Correct 15 ms 8164 KB Output is correct
52 Correct 16 ms 8164 KB Output is correct
53 Correct 17 ms 8168 KB Output is correct
54 Correct 17 ms 8156 KB Output is correct
55 Correct 14 ms 8172 KB Output is correct
56 Correct 15 ms 8148 KB Output is correct
57 Correct 16 ms 8128 KB Output is correct
58 Correct 14 ms 8168 KB Output is correct
59 Correct 14 ms 8156 KB Output is correct
60 Correct 17 ms 8148 KB Output is correct
61 Correct 15 ms 8168 KB Output is correct
62 Correct 18 ms 8156 KB Output is correct
63 Correct 15 ms 8148 KB Output is correct
64 Correct 16 ms 8156 KB Output is correct
65 Correct 18 ms 8148 KB Output is correct
66 Correct 15 ms 8148 KB Output is correct
67 Correct 14 ms 8148 KB Output is correct
68 Correct 15 ms 8164 KB Output is correct
69 Correct 14 ms 8156 KB Output is correct
70 Correct 15 ms 8148 KB Output is correct
71 Correct 15 ms 8156 KB Output is correct
72 Correct 17 ms 8276 KB Output is correct
73 Correct 16 ms 8164 KB Output is correct
74 Correct 15 ms 8172 KB Output is correct
75 Correct 15 ms 8160 KB Output is correct
76 Correct 16 ms 8164 KB Output is correct
77 Correct 20 ms 8148 KB Output is correct
78 Correct 16 ms 8148 KB Output is correct
79 Correct 18 ms 8164 KB Output is correct
80 Correct 15 ms 8148 KB Output is correct
81 Correct 17 ms 8148 KB Output is correct
82 Correct 16 ms 8152 KB Output is correct
83 Correct 17 ms 8148 KB Output is correct
84 Correct 17 ms 8156 KB Output is correct
85 Correct 15 ms 8164 KB Output is correct
86 Correct 14 ms 8168 KB Output is correct
87 Correct 14 ms 8164 KB Output is correct
88 Correct 15 ms 8156 KB Output is correct
89 Correct 15 ms 8148 KB Output is correct
90 Correct 16 ms 8148 KB Output is correct
91 Correct 20 ms 8176 KB Output is correct
92 Correct 17 ms 8168 KB Output is correct
93 Correct 17 ms 8148 KB Output is correct
94 Correct 14 ms 8160 KB Output is correct
95 Correct 15 ms 8160 KB Output is correct
96 Correct 16 ms 8148 KB Output is correct
97 Correct 17 ms 8112 KB Output is correct
98 Correct 17 ms 8156 KB Output is correct
99 Correct 19 ms 8288 KB Output is correct
100 Correct 15 ms 8172 KB Output is correct
101 Correct 14 ms 8164 KB Output is correct
102 Correct 15 ms 8160 KB Output is correct
103 Correct 15 ms 8168 KB Output is correct
104 Correct 16 ms 8148 KB Output is correct
105 Correct 16 ms 8148 KB Output is correct
106 Correct 14 ms 8148 KB Output is correct
107 Correct 14 ms 8172 KB Output is correct
108 Correct 14 ms 8160 KB Output is correct
109 Correct 16 ms 8148 KB Output is correct
110 Correct 14 ms 8148 KB Output is correct
111 Correct 15 ms 8148 KB Output is correct
112 Correct 15 ms 8148 KB Output is correct
113 Correct 15 ms 8148 KB Output is correct
114 Correct 19 ms 8160 KB Output is correct
115 Correct 24 ms 8168 KB Output is correct
116 Correct 21 ms 8160 KB Output is correct
117 Correct 16 ms 8148 KB Output is correct
118 Correct 19 ms 8148 KB Output is correct
119 Correct 16 ms 8148 KB Output is correct
120 Correct 16 ms 8152 KB Output is correct
121 Correct 25 ms 8540 KB Output is correct
122 Correct 24 ms 8524 KB Output is correct
123 Correct 25 ms 8508 KB Output is correct
124 Correct 31 ms 8636 KB Output is correct
125 Correct 25 ms 8548 KB Output is correct
126 Correct 25 ms 8528 KB Output is correct
127 Correct 23 ms 8420 KB Output is correct
128 Correct 23 ms 8540 KB Output is correct
129 Correct 18 ms 8276 KB Output is correct
130 Correct 14 ms 8148 KB Output is correct
131 Correct 22 ms 8428 KB Output is correct
132 Correct 24 ms 8532 KB Output is correct
133 Correct 20 ms 8148 KB Output is correct
134 Correct 27 ms 8532 KB Output is correct
135 Correct 15 ms 8200 KB Output is correct
136 Correct 27 ms 8780 KB Output is correct
137 Correct 30 ms 8716 KB Output is correct
138 Correct 27 ms 8780 KB Output is correct
139 Correct 24 ms 8792 KB Output is correct
140 Correct 26 ms 8780 KB Output is correct
141 Correct 25 ms 8780 KB Output is correct
142 Correct 24 ms 8732 KB Output is correct
143 Correct 23 ms 8540 KB Output is correct
144 Correct 24 ms 8800 KB Output is correct
145 Correct 23 ms 8532 KB Output is correct
146 Correct 26 ms 8476 KB Output is correct
147 Correct 27 ms 8420 KB Output is correct
148 Correct 24 ms 8552 KB Output is correct
149 Correct 29 ms 8532 KB Output is correct
150 Correct 23 ms 8424 KB Output is correct
151 Correct 97 ms 11352 KB Output is correct
152 Correct 91 ms 11324 KB Output is correct
153 Correct 94 ms 11436 KB Output is correct
154 Correct 98 ms 11524 KB Output is correct
155 Correct 115 ms 11420 KB Output is correct
156 Correct 98 ms 11416 KB Output is correct
157 Correct 103 ms 11480 KB Output is correct
158 Correct 16 ms 8232 KB Output is correct
159 Correct 73 ms 10700 KB Output is correct
160 Correct 79 ms 10984 KB Output is correct
161 Correct 60 ms 9932 KB Output is correct
162 Correct 106 ms 11528 KB Output is correct
163 Correct 53 ms 9676 KB Output is correct
164 Correct 37 ms 9036 KB Output is correct
165 Correct 52 ms 9840 KB Output is correct
166 Correct 92 ms 12580 KB Output is correct
167 Correct 97 ms 12632 KB Output is correct
168 Correct 94 ms 12704 KB Output is correct
169 Correct 96 ms 12752 KB Output is correct
170 Correct 89 ms 12596 KB Output is correct
171 Correct 94 ms 12612 KB Output is correct
172 Correct 95 ms 12652 KB Output is correct
173 Correct 103 ms 11536 KB Output is correct
174 Correct 119 ms 12648 KB Output is correct
175 Correct 103 ms 11596 KB Output is correct
176 Correct 95 ms 11608 KB Output is correct
177 Correct 93 ms 11320 KB Output is correct
178 Correct 99 ms 11320 KB Output is correct
179 Correct 101 ms 11296 KB Output is correct
180 Correct 98 ms 11632 KB Output is correct
181 Correct 362 ms 21108 KB Output is correct
182 Correct 320 ms 21352 KB Output is correct
183 Correct 364 ms 21484 KB Output is correct
184 Correct 307 ms 20796 KB Output is correct
185 Correct 296 ms 20764 KB Output is correct
186 Correct 349 ms 20688 KB Output is correct
187 Correct 388 ms 21328 KB Output is correct
188 Correct 28 ms 8604 KB Output is correct
189 Correct 27 ms 8552 KB Output is correct
190 Correct 18 ms 8148 KB Output is correct
191 Correct 31 ms 8800 KB Output is correct
192 Correct 326 ms 20932 KB Output is correct
193 Correct 21 ms 8404 KB Output is correct
194 Correct 30 ms 8840 KB Output is correct
195 Correct 18 ms 8276 KB Output is correct
196 Correct 359 ms 24084 KB Output is correct
197 Correct 391 ms 23564 KB Output is correct
198 Correct 394 ms 24404 KB Output is correct
199 Correct 417 ms 24360 KB Output is correct
200 Correct 405 ms 24448 KB Output is correct
201 Correct 357 ms 23812 KB Output is correct
202 Correct 404 ms 24108 KB Output is correct
203 Correct 355 ms 21208 KB Output is correct
204 Correct 423 ms 23576 KB Output is correct
205 Correct 329 ms 21520 KB Output is correct
206 Correct 321 ms 20956 KB Output is correct
207 Correct 312 ms 20940 KB Output is correct
208 Correct 309 ms 21456 KB Output is correct
209 Correct 320 ms 21220 KB Output is correct
210 Correct 327 ms 20948 KB Output is correct