😈 알고리즘/🖥️ 프로그래머스

🖥️ 피자 나눠 먹기 (1)

Buᐢ༝ᐢy 2022. 12. 4. 06:00
코딩테스트 연습 - 피자 나눠 먹기 (1)
https://school.programmers.co.kr/learn/courses/30/lessons/120814
#include <string>
#include <vector>

using namespace std;

int solution(int n) {
    int answer = n / 7;
    if(n % 7 != 0) answer++;
    return answer;
}

Uploaded by N2T