[문제 링크] : https://www.acmicpc.net/problem/2473#include #include using namespace std;long long N;long long Arr[5004];long long Ans[4];long long maxi = 1e18; int main(){ ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0); cin >> N; for(int i=1; i> Arr[i]; } sort(Arr+1, Arr+1+N); for(int i=1; i