๐ ๋ฌธ์ ๋งํฌ
https://school.programmers.co.kr/learn/courses/30/lessons/12932
โ๐ป ๋ฌธ์ ์ค๋ช
๐ค ์ฝ๋
#include <string>
#include <vector>
using namespace std;
vector<int> solution(long long n) {
vector<int> answer;
while (n)
{
answer.push_back(n % 10);
n /= 10;
}
return answer;
}
'๊ฐ๋ฐ > PS' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
[ํ๋ก๊ทธ๋๋จธ์ค] ์๋ฆฟ์ ๋ํ๊ธฐ, C++ (0) | 2024.11.24 |
---|---|
[ํ๋ก๊ทธ๋๋จธ์ค] ์ฝ์์ ํฉ, C++ (0) | 2024.11.19 |
[ํ๋ก๊ทธ๋๋จธ์ค] ํ๋ ฌ์ ๋ง์ , C++ (0) | 2024.11.18 |
[๋ฐฑ์ค] ํจ์ ์ ์ ํ๋น(9375), C++ (0) | 2024.11.17 |
[์ฝํ ] ์ฝ๋ฉํ ์คํธ ๊ฟํ (1) | 2024.11.15 |