Notice
Recent Posts
Recent Comments
Link
Tags
- CVE-2022-22965
- CVE-2014-0094
- NoSQL
- DOM
- Hackthebox cat
- Directory traversal
- PortSwigger
- UnCrackable level 1
- Android Backup
- JSP
- File Upload
- MariaDB
- mongoDB
- HackTheBox
- CVE-2010-1622
- Frida
- mstg
- getCachedIntrospectionResults
- HackTheBox APKey
- Android 6.0
- xss
- SeeTheSharpFlag
- JAVA ClassLoader 취약점
- nginx
- XALZ 압축해제
- Xamarin 분석
- HacktheBox Mobile
- login form
- UnCrackable
- blind sql injection
Archives
- Today
- Total
목록Development/Algorism (1)
끄적끄적
[Programmers] 로또의 최고 순위와 최저 순위
문제 URL 더보기 https://programmers.co.kr/learn/courses/30/lessons/77484 def solution(lottos, win_nums): lot_dic = {6:1,5:2,4:3,3:4,2:5,1:6,0:6} #Dictionary 선언 cont_0 = [(i) for i in lottos if i==0] #for내 If문으로 변수 초기화 accord = 0 answer = [] for i in lottos: if i in win_nums: accord +=1 answer.append(lot_dic[accord+len(cont_0)]) answer.append(lot_dic[accord]) return answer
Development/Algorism
2021. 9. 2. 17:38