Skip to content

Commit

Permalink
이슈 #354에서 솔루션 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Nov 21, 2024
1 parent 5da3957 commit a579890
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions Programmers/외계행성의_나이.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#include <string>
#include <vector>

using namespace std;

string solution(int age) {
string answer = "";

for (char c : to_string(age)) {
answer += '0' + c + 1;
}

return answer;
}

0 comments on commit a579890

Please sign in to comment.