We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents ef8da4d + 21d031c commit f555e13Copy full SHA for f555e13
1 file changed
khj20006/202512/13 BOJ G2 반도체 설계.md
@@ -0,0 +1,21 @@
1
+```cpp
2
+#include <bits/stdc++.h>
3
+using namespace std;
4
+
5
+int N;
6
+vector<int> v;
7
8
+int main() {
9
+ cin.tie(0)->sync_with_stdio(0);
10
11
+ cin>>N;
12
+ for(int a;N--;) {
13
+ cin>>a;
14
+ int idx = lower_bound(v.begin(), v.end()) - v.begin();
15
+ if(idx == v.size()) v.push_back(a);
16
+ else v[idx] = a;
17
+ }
18
+ cout<<v.size();
19
20
+}
21
+```
0 commit comments