From accbef35791b6cdf12ca89fb6c8e0998e0c5ccff Mon Sep 17 00:00:00 2001 From: GitHub Action Date: Tue, 19 Nov 2024 08:56:01 +0000 Subject: [PATCH] =?UTF-8?q?=EC=9D=B4=EC=8A=88=20#321=EC=97=90=EC=84=9C=20?= =?UTF-8?q?=EC=86=94=EB=A3=A8=EC=85=98=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ..._\353\260\224\354\234\204_\353\263\264.cpp" | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 "Programmers/\352\260\200\354\234\204_\353\260\224\354\234\204_\353\263\264.cpp" 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