백준 14002 C++ https://www.acmicpc.net/problem/14002 이전 포스팅인 14003을 확인했다면 굉장히 쉽고 또 동일하게 풀 수 있는 문제였다.그냥 크기가 좀 더 작은 복습이라고 생각하면 편하다.#include using namespace std;int n, num, len = 0;int arr[1004];pair p[1004];vector v;int main(){ ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0); cin >> n; for (int i = 0; i > num; auto lowerPos = lower_bound(arr, arr + len, num); int pos = (int)(lower_bound(arr, arr + len, n.. 2025. 2. 22. 이전 1 다음