본문 바로가기
C++

[프로그래머스] 피자 나눠 먹기(1)

by 띰쥬 2025. 9. 2.
728x90
반응형
SMALL

#include <stdio.h>
#include <stdbool.h>
#include <stdlib.h>

int solution(int n) {
    return n%7 == 0 ? n/7 : n/7+1;
}

728x90
반응형
LIST

댓글