Skip to content

류효정/1~2주차#8

Open
YEOUL0520 wants to merge 1 commit into
developfrom
yeoul2
Open

류효정/1~2주차#8
YEOUL0520 wants to merge 1 commit into
developfrom
yeoul2

Conversation

@YEOUL0520
Copy link
Copy Markdown
Owner

[1주차] 가장 많이 받은 선물 / LV.1

  • 배열에 저장된 문자열을 다시 공백 단위로 나누어 저장하는 것이 어려웠음
  • for문을 중첩해서 사용해야 하는 부분이 많아서 비효율적이지 않나,, 생각함

[2주차] 붕대 감기 / LV.1

  • 연속 붕대감기를 실패하지 않고 성공하는 경우에도 다시 연속성공시간을 초기화해줘야 하는것을 깜빡했음

[2주차] 예산 / LV.1

  • 초반에 가능한 조합을 모두 생각해야 하는건가? 고민했는데 결과적으로 지원할 수 있는 부서의 수만 출력하면 되기도 하고/금액이 남거나 모자라서 지원이 불가능한 경우는 없다고 해서 그럴 필요가 없구나! 했음

add
@hyellm
Copy link
Copy Markdown

hyellm commented Oct 2, 2024

2주차 예산 문제... 나도 이런저런 방법을 계속 예시 넣어가면서 고민을 했는데, 부서에 지원할 금액이 정해져 있을 때 각 부서가 신청한 금액을 오름차순으로 정렬하고 금액이 작은 부서부터 지원을 해주는 게 최적의 분배 방법이었어옹 .

Comment thread main_week2_2.cpp

//�ݾ� ������� Ȯ���ϸ鼭 ���� �ݾ׿� �߰�
for (int i = 0; i < d.size(); i++) {
total += d[i];
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

더하기로 접근하는 방법도 좋은 것 같아요.

Comment thread main_week1_1.cpp
vector<string> receive;

// give�� receive �и��ϱ�
for (const auto& gift : gifts) {
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cpp의 반복문 사용 방법 중 자료형 대신 타입 추론 auto를 이용하여 범위 기반 for문 돌린것이 인상적이엇습니다

Comment thread main_week2_1.cpp
//�ش� ���� ������
if (bandageContinue <= bandageDuration) {
currentHealth += healAmount; //ü�� ȸ��
bandageContinue++; //���� �ð� ����
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

피드백한 것으로 수정확인~!!

@YEOUL0520 YEOUL0520 deleted the branch develop February 16, 2025 12:43
@YEOUL0520 YEOUL0520 closed this Feb 16, 2025
@YEOUL0520 YEOUL0520 reopened this Feb 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants