Search posts...
class Solution { public int solution(int hp) { int r1 = hp/5; int r = hp%5; int r2 = r/3; int r3 = r%3; return r1+r2+r3; } }
class Solution { public int solution(int hp) { return hp / 5 + (hp % 5) / 3 + (hp % 5) % 3; } }
silver