가장 많은 솔루션 def solution(lottos, win_nums): rank=[6,6,5,4,3,2,1]//2개 맞는 경우 부터 5등 cnt_0 = lottos.count(0)//0의 개수를 세서 저장 ans = 0 for x in win_nums: if x in lottos://x 값이 lottos 에 있는지 확인 ans += 1 return rank[cnt_0 + ans],rank[ans] 나의 정답... 맞기는 했는데 구조가 좋지 않은거 같다. def solution(lottos, win_nums): answer = [6,6]//초기값 6등 count = 0 for i in lottos: for j in win_nums: if i==j: answer[0] -=1 answer[1] -=1 if..
오늘은 신고 결과 받기 - python 코드를 분석해 본다. python 의 dictionary 형태를 처음써 보았다. set 함수도 처음 써 본다. def solution(id_list, report, k): answer = [0]*len(id_list) //정답 형태 작성 reports = {x:0 for x in id_list}// 데이터를 담을 형태 생성 for r in set(report):// set으로 복수를 단수로 하고 reports[r.split()[1]] +=1// 데이터에 해당 하는 곳에 +1 for r in set(report): if reports[r.split()[1]] >=k://k값 보다 높은 값을 찾아 answer[id_list.index(r.split()[0])] +=1 ..
- Total
- Today
- Yesterday
- 무료는 아니지만
- 모듏화
- 코테
- bitrise
- Fastlane
- swift
- chatgpt 4o
- async
- ios
- GPT4
- swiftLint
- MQTT
- GCD
- firebase
- 빌드자동화
- xcode whitespace trim option
- ATS failed system trust
- Default Rules
- ChatGPT
- jenkins
- AppThinning
- 프로그래머스
- IF (KAKAO) DEV 2022
- XCTestExpectation
- CI/CD
- RxSwift
- AWS IoT
- 같이쓰기
- Moya
- geohash
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |