Skip to content

Commit

Permalink
개미 군단
Browse files Browse the repository at this point in the history
  • Loading branch information
dudwns committed Mar 24, 2023
1 parent 483bde7 commit 9f0d1dd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Programmers/exam38.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
function solution(hp) {
return ~~(hp / 5) + ~~((hp % 5) / 3) + ((hp % 5) % 3);
}

0 comments on commit 9f0d1dd

Please sign in to comment.