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

[Week6] 김재원 : 수리공 항승, 신입 사원, 동전 0, 잃어버린 괄호, 큰 수 만들기 #28

Merged
merged 5 commits into from
Jun 26, 2022

Conversation

ashwon12
Copy link
Member

📒 Issue Number

linked issue #26


💎 문제 해결

수리공 항승: ⭕️
신입 사원 : 🔺 
동전 0 :⭕️ 
잃어버린 괄호 :⭕️ 
큰 수 만들기 : 🔺 

🔥 특이사항/질문

신입 사원 문제는 풀었고 답도 다 맞는데 자꾸 시간초과가 나요 ㅜㅜ
시간초과 해결은 못한 상태의 코드입니다.. 뭐 때문인지 궁금하네요...
큰 수 만들기 문제도 혼자 계속 풀다가 안돼서 구글링 통해서 풀었습니다 !!

내일 스터디 다들 빠이팅하세요!!!!!!! 상 타 오겠습니닷!!!!

@gongdongho12
Copy link
Member

화이팅입니다! 이걸 새벽에 하시네요 꼭 상받아오셔요👍🏼👍🏼

@soopeach
Copy link
Member

좋은 결과가 있기를 바라겠습니다!! 화이팅!

Copy link
Member

@gongdongho12 gongdongho12 left a comment

Choose a reason for hiding this comment

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

코드리뷰 완료

Comment on lines +9 to +12
repeat(n){
val (a,b) = readln().split(" ").map{it.toInt()}
result.add(Pair(a,b))
}
Copy link
Member

Choose a reason for hiding this comment

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

변수 따로 안만들고 Array로 뺐으면 바로 배열로 만들어 쓸 수 있었을거같아요

Comment on lines +6 to +7
.map{it.split("+").map { it.toInt() }.reduce { acc, s -> acc+s }}
.reduce{total,num -> total-num})
Copy link
Member

Choose a reason for hiding this comment

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

와 reduce 장인....

@ashwon12 ashwon12 merged commit a2b4478 into main Jun 26, 2022
@ashwon12 ashwon12 deleted the week6_jaewon branch July 7, 2022 13:57
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