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

Jmnote (토론 | 기여)님의 2023년 11월 8일 (수) 23:31 판 (→‎개요)

1 개요

프로그래머스 120814 피자 나눠 먹기 (1)
#include <string>
#include <vector>

using namespace std;

int solution(int n) {
    return n/7 + (n%7>0);
}
#include <string>
#include <vector>

using namespace std;

int solution(int n) {
    return (n+6)/7;
}

2 같이 보기

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}