프로그래머스/Lv.0
[프로그래머스 C#] 피자 나눠 먹기 (3)
suniverse
2023. 7. 26. 20:56
using System;
public class Solution {
public int solution(int slice, int n) {
int answer = 0;
answer = n / slice + (n % slice == 0 ? 0 : 1);
return answer;
}
}