Skip to content

Commit

Permalink
2024-07-24 나무 자르기
Browse files Browse the repository at this point in the history
공백 제거
  • Loading branch information
suhyun113 committed Jul 25, 2024
1 parent 8ad4eda commit 74486ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion suhyun113/이분 탐색/12-suhyun113.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ using namespace std;

// 절단기에 지정한 나무의 높이 H로 나무를 자름
// H보다 크면 자르기(작으면, 값이 0 또는 음수로 나옴)
bool can_cut(vector<int>& trees, int H, int M) {
bool can_cut(vector<int>& trees, int H, int M) {
long long total = 0; // 자른 나무들의 총 합
for (int tree : trees) {
if (tree > H) {
Expand Down

0 comments on commit 74486ca

Please sign in to comment.