//https://www.acmicpc.net/problem/2959 #include <iostream> | |
#include <algorithm> | |
using namespace std; | |
int main(){ | |
int n[4]; | |
for(int i=0; i<4; i++) cin >> n[i]; | |
sort(n, n+4); | |
cout << n[0]*n[2]; | |
return 0; | |
} |
'알고리즘 문제 풀이 > 1DP_과제(~180615)' 카테고리의 다른 글
180430_2845_파티가 끝나고 난 뒤 (0) | 2018.04.30 |
---|---|
180428_2799_블라인드 (0) | 2018.04.28 |
180426_1236_성 지키기 (0) | 2018.04.26 |
180425_1568_새 (0) | 2018.04.25 |
180424_1032_베스트셀러 (0) | 2018.04.24 |
//https://www.acmicpc.net/problem/2959 #include <iostream> | |
#include <algorithm> | |
using namespace std; | |
int main(){ | |
int n[4]; | |
for(int i=0; i<4; i++) cin >> n[i]; | |
sort(n, n+4); | |
cout << n[0]*n[2]; | |
return 0; | |
} |
'알고리즘 문제 풀이 > 1DP_과제(~180615)' 카테고리의 다른 글
180430_2845_파티가 끝나고 난 뒤 (0) | 2018.04.30 |
---|---|
180428_2799_블라인드 (0) | 2018.04.28 |
180426_1236_성 지키기 (0) | 2018.04.26 |
180425_1568_새 (0) | 2018.04.25 |
180424_1032_베스트셀러 (0) | 2018.04.24 |