BOJ 1037 약수

1 개요[ | ]

BOJ 1037 약수


2 C++[ | ]

#include <iostream>
using namespace std;

int main() {
    int T, N, temp;
    cin >> T;
    int min = 1000000;
    int max = 2;
    while(T--) {
        cin >> temp;
        if(temp < min) min = temp;
        if(temp > max) max = temp;
    }
    cout << min*max;
}
문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}