프로그래머스 12940 최대공약수와 최소공배수

1 개요[ | ]

프로그래머스 12940 최대공약수와 최소공배수

2 C++[ | ]

#include <string>
#include <vector>
#include <numeric>
using namespace std;

vector<int> solution(int n, int m) {
    return vector<int> {gcd(n,m), lcm(n,m)};
}
문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}