Skip to content

[맵, 셋] 9월 12일#2

Open
aqswa wants to merge 1 commit intomainfrom
맵,-셋

Hidden character warning

The head ref may contain hidden characters: "\ub9f5,-\uc14b"
Open

[맵, 셋] 9월 12일#2
aqswa wants to merge 1 commit intomainfrom
맵,-셋

Conversation

@aqswa
Copy link
Collaborator

@aqswa aqswa commented Sep 12, 2021

No description provided.

@aqswa aqswa changed the title Add files via upload [맵, 셋] 9월 7일 Sep 12, 2021
@aqswa aqswa changed the title [맵, 셋] 9월 7일 [맵, 셋] 9월 12일 Sep 12, 2021
Copy link

@bsa0322 bsa0322 left a comment

Choose a reason for hiding this comment

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

p2. 너무 너무 잘해주셨어요!!!! 제가 거의 드릴 말씀이 없었습니다... 19636 음수 나눗셈 처리하는 부분만 수정 후 저 다시 불러주세요~! 수고하셨습니다~!!

Copy link

Choose a reason for hiding this comment

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

string을 가공하지 않고 너무 잘 풀어주셨어요!!!! 👍 가독성 면에서 조금 코멘트를 드리자면, res 벡터를 push_back 으로 일의 자리 수부터 저장한 후, 끝에서부터 출력하는 형태로 하면 출력을 하나로 합칠 수 있어요!!

Copy link

Choose a reason for hiding this comment

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

n, m 은 다시 쓰지 않으니 while(n--) 으로 입력 받아도 좋을 것 같아요~!

Copy link

Choose a reason for hiding this comment

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

cnt 변수 사용도 좋지만, ans 만으로도 크기를 알 수 있는 방법이 있죠!

Copy link

Choose a reason for hiding this comment

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

앗 4385 문제는 아직 못 푸신 걸까요..!?

Comment on lines 6 to 12
Copy link

Choose a reason for hiding this comment

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

p2. 음수를 2로 나눈 몫을 잘 처리해주셨어요! 하지만 반복문의 사용 없이 한 번의 연산 만으로 처리할 수 있는 방법이 있어요. -5/2를 하면 -3이 나와야 하는데, c++에선 -2가 나오죠! 어떻게 하면 좋을까요? 아니면 floor 함수에 대해 알아봐도 좋을 것 같아요.

Copy link

Choose a reason for hiding this comment

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

필요한 정보를 아주 잘 캐치해주셨어요~!!👍

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.

2 participants