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

2021/03/25 뚫어뻥 스터디 과제 체크 #2

Open
heechokim opened this issue Mar 25, 2021 · 6 comments
Open

2021/03/25 뚫어뻥 스터디 과제 체크 #2

heechokim opened this issue Mar 25, 2021 · 6 comments

Comments

@heechokim
Copy link
Member

자신이 정리한 글을 볼 수 있는 링크와 자신이 해결한 문제를 볼 수 있는 링크를 적어주세요~

  • 이번주 주제 : 배열
@heechokim
Copy link
Member Author

  • 배열 정리
  • 백준 3273번 - 두 수의 합
    •  fun main() {
        // input scope
        val n: Int = readLine()!!.toInt()
        val input = readLine()!!.split(" ").map { it.toInt() }
        val array = Array<Int>(1000010){ 0 }
        input.forEach {
            array[it]++
        }
        val x = readLine()!!.toInt()
      
        var count = 0
        input.forEach {
            val tmp = x - it
            if (tmp > 0 && array[tmp] > 0) {
                count++
            }
        }
      
        if (count == 0) {
            print(0)
        }else{
            print(count/2)
        }
      
      }

@DNATUNA
Copy link
Member

DNATUNA commented Mar 25, 2021

1주자

@Tae-Hyeon
Copy link
Collaborator

Tae-Hyeon commented Mar 25, 2021

배열 과제

backjoon - 1997 회의실 배정, 2667 단지 번호 붙이기
++ 이산수학 진리표, Array 정리 추가 (2021-03-26)

@ritty27
Copy link
Member

ritty27 commented Mar 25, 2021

배열

@oeccsy
Copy link
Collaborator

oeccsy commented Mar 25, 2021

1주차 배열 정리

다들 노션이나 마크다운으로 깔끔하게 잘 정리해주셨네요!
오늘 올려주신것 보고 배워서 다음주부턴 마크다운으로 정리해보겠습니다!

@scj7565
Copy link
Collaborator

scj7565 commented Apr 1, 2021

1주차 과제 (배열)

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

No branches or pull requests

6 participants