코딩테스트/백준
2024. 9. 7.
[백준] 1377번: 버블 소트
🔗 문제 링크https://www.acmicpc.net/problem/1377👩💻 코드#include #include #include using namespace std;int main(){ ios::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL); int N; cin >> N; vector> A(N); for(int i=0; i> A[i].first; A[i].second = i; } sort(A.begin(), A.end()); int max = 0; for(int i=0; i📝 풀이Do it! 알고리즘 코딩테스 - C++ 편 : 기출 유..