1. 문제
https://programmers.co.kr/learn/courses/30/lessons/12932
2. 풀이
2.1. python
def solution(n):
return list(reversed([int(x) for x in str(n)]))
2.2. c++
#include <string>
#include <vector>
using namespace std;
vector<int> solution(long long n) {
vector<int> answer;
string str = to_string(n);
for(int i = str.size() - 1; i >= 0; i--)
answer.push_back(str[i]-'0');
return answer;
}