[문제 링크] : https://www.acmicpc.net/problem/2981#include #include #include using namespace std;int N, T;int inp;vector V, Ans;int solve(int a, int b){ if(b == 0){ return a; } return solve(b, a % b);}int main() { cin >> N; for(int i=0; i> inp; V.push_back(inp); } sort(V.begin(), V.end()); T = V[1] - V[0]; for(int i=2; i