Skip to content

Commit

Permalink
가위 바위 보
Browse files Browse the repository at this point in the history
  • Loading branch information
dudwns committed Mar 26, 2023
1 parent 021afe5 commit 8064410
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Programmers/exam43.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
function solution(rsp) {
let answer = "";
for (let a of rsp) answer += a === "2" ? 0 : a === "0" ? 5 : 2;
return answer;
}

0 comments on commit 8064410

Please sign in to comment.