Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

12 트리 #9

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open

12 트리 #9

wants to merge 5 commits into from

Conversation

kimeunsom
Copy link
Collaborator

@kimeunsom kimeunsom commented Nov 22, 2023

###인적사항
학번 : 2271018
이름 : 김은솜

###과제제출
기존제출 : 3190, 15681
추가제출 : 5639

Copy link

@sawoll sawoll left a comment

Choose a reason for hiding this comment

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

[12주차 트리 코드리뷰 완료]
안녕하세요 은솜님! 15681번 코드리뷰 완료되었습니다. 추가제출까지 확인되었습니다.
로직도 꼼꼼하게 잘 짜 주시고 주석도 잘 달아 주셔서 따로 코멘트 드릴 부분이 없었습니다. 수고 많으셨습니다.😊

Copy link

@mingulmangul mingulmangul left a comment

Choose a reason for hiding this comment

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

[트리 구현 코드 리뷰 완료]
3190(P3)
안녕하세요 은솜님
구현할 것이 많은 문제였는데 정말 잘 풀어주신 것 같습니다 👍
코드도 깔끔하고 주석도 상세하게 달아주셔서 코멘트 남길 것이 정말 없었네요 ㅎㅎ 간단하게만 남겼으니 한 번 읽어봐주세요!
과제하느라 고생많으셨어요 🥰

for (int i = 0; i < k; ++i) {
int x, y;
cin >> x >> y;
board[x - 1][y - 1] = 1; // 사과의 위치 표시

Choose a reason for hiding this comment

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

P3. 주석에 표시해주셔서 이해는 쉽지만 그래도 0,1,2를 그대로 사용하는 것보다 상수로 정의해서 사용하면 더 좋을 것 같아요!


// 게임 종료 조건 확인
if (head_x < 0 || head_y < 0 || head_x >= n || head_y >= n || board[head_x][head_y] == 2) {
cout << game_time << endl; // 게임 종료 시간 출력

Choose a reason for hiding this comment

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

P3. 아주 사소한 것이지만 endl\n보다 느리다고 해요! 나중에 출력이 많은 문제를 풀 때 시간을 더 단축시키고 싶다면 이 점 기억해주시면 좋을 것 같아 코멘트 남깁니다 ^^

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