분류 전체보기237 [Root Me] Native code 1. 개요 난해한 프로그래밍 스타일 문제 2. 분석 코드를 보면 JSFuck과 같이 스크립트가 난해하게 작성되어 있습니다. É=-~-~[],ó=-~É,Ë=É 2023. 4. 2. [pico CTF] Transformation 1. 개요 16bit, 8bit 이해 문제 2. 분석 코드를 보면, 앞글자를 8 bit 뒤록 밀고, 뒷글자를 붙여서 16bit 문자열을 생성합니다. ''.join([chr((ord(flag[i]) > 8) + chr(num & 0xff) print(flag) # picoCTF{16_bits_inst34d_of_8_75d4898b} 2023. 4. 2. weekly-contest-323 개요 날짜 2022.12.11 일 11:30 ~ 13:00 링크: https://leetcode.com/contest/weekly-contest-323/ 결과 3 / 4 1. Delete Greatest Value in Each Row 링크: https://leetcode.com/contest/weekly-contest-323/problems/delete-greatest-value-in-each-row/ 반복문 사용 class Solution: def deleteGreatestValue(self, grid: List[List[int]]) -> int: # 1. init n = len(grid) m = len(grid[0]) res = 0 # 2. sort for i in range(n): grid[i.. 2022. 12. 11. weekly-contest-322 개요 날짜 2022.12.04 일 11:30 ~ 13:00 링크: https://leetcode.com/contest/weekly-contest-322/ 결과 3 / 4 1. Circular Sentence 링크: https://leetcode.com/contest/weekly-contest-322/problems/circular-sentence/ 반복문 사용 class Solution: def isCircularSentence(self, sentence: str) -> bool: # 1. init s = sentence.split(" ") # 2. loop prev = s[-1] for c in s: if prev[-1] != c[0]: return False prev = c return T.. 2022. 12. 4. 이전 1 ··· 8 9 10 11 12 13 14 ··· 60 다음