diff --git "a/Programmers/\352\260\200\354\234\204_\353\260\224\354\234\204_\353\263\264.cpp" "b/Programmers/\352\260\200\354\234\204_\353\260\224\354\234\204_\353\263\264.cpp" new file mode 100644 index 0000000..7e2d2fd --- /dev/null +++ "b/Programmers/\352\260\200\354\234\204_\353\260\224\354\234\204_\353\263\264.cpp" @@ -0,0 +1,18 @@ +#include +#include + +using namespace std; + +string solution(string rsp) { + string answer = ""; + for (char c : rsp) { + if (c == '2') + answer += "0"; + else if (c == '0') + answer += "5"; + else if (c == '5') + answer += "2"; + } + + return answer; +} \ No newline at end of file