[알고리즘] 백준 4589 - Gnome Sequencing (C++) [문제 링크] : https://www.acmicpc.net/problem/4589#include #include using namespace std;int T;int main(){ cin >> T; cout V(3); for(int i=0; i> V[i]; } if((V[1] - V[0]) * (V[2] - V[1]) > 0){ cout 알고리즘 2025.03.17