9024 - 두 수의 합
문제https://www.acmicpc.net/problem/9024느낀점투 포인터 알고리즘 자체는 어렵지 않았지만, 많은 수의 입력이 들어올 때, 동기화 해주어야했다. 이런 부분이 백준 문제가 짜증나는 듯..풀이#include #include #include using namespace std;int main{ int t; cin >> t; std::ios::sync_with_stdiofalse; for inti=0;i>n>>K;vectorarr(n; for int k = 0; k > arr[k]; } sort(arr.begin(, arr.end); int left = 0, right..
2025.02.18