diff --git a/Programmers/exam38.js b/Programmers/exam38.js new file mode 100644 index 0000000..557d205 --- /dev/null +++ b/Programmers/exam38.js @@ -0,0 +1,3 @@ +function solution(hp) { + return ~~(hp / 5) + ~~((hp % 5) / 3) + ((hp % 5) % 3); +}