VioletaBabel
1037번: 약수 본문
1 2 3 4 5 6 7 8 9 10 11 | #include<cstdio> #include<algorithm> using namespace std; int main() { int n, num[50]; scanf("%d", &n); for (int i = 0; i < n; scanf("%d", &num[i++])); sort(&num[0], &num[n]); printf("%d", num[0] * num[n - 1]); } | cs |
'백준 > 백준-C++' 카테고리의 다른 글
1159번: 농구 경기 (0) | 2017.09.04 |
---|---|
1100번: 하얀 칸 (0) | 2017.09.02 |
1009번: 분산처리 (0) | 2017.09.02 |
1026번: 보물 (0) | 2017.09.02 |
1389번: 케빈 베이컨의 6단계 법칙 (0) | 2017.06.23 |
Comments