https://algospot.com/judge/problem/read/GAME 현재 숫자에서 가장 작은 값을 가진 인덱스를 찾음. MAP에 모든 값을 저장하고 탐색하여 가장 작은 값을 조건에 맞춰 얻음. 그리디 알고리즘의 시간복잡도는 O(n^2)와 같다. #include int STACK[501]; int SP; int MAP[501][501]; int K, N; bool Check(int _num) { SP = 0; int _index = 0,_value = 999; for (int i = 0; i MAP[i][_num]){ _value = MAP[i][_num]; _index = i; } for (int i = 0; i < ..