panda 19

모든 스도쿠의 신

어느 날 스도쿠 300 문제가 담겨있는 책을 풀던 저는 귀찮음에 스도쿠 괴물을 만들고 말았습니다  어떤 스도쿠이든지 기본 룰 스도쿠는 빛의 속도로 풀어내는 괴물입니다 def find_empty_cell(board):    for row in range(9):        for col in range(9):            if board[row][col] == 0:                return row, col    return Nonedef is_valid(board, row, col, num):    for i in range(9):        if board[row][i] == num:            return False    for i in range(9):        i..

호그와트 2024.06.02

퐁듀에다가 두부를 갈아서 찍먹 빵애에요

"""Problem Description You are tasked with writing a Python script to identify valid subdomains for a given domain.  Your script will take a domain name as a command-line argument and check a list of potential subdomains  from a file named subdomains.txt. For each potential subdomain, the script should attempt to make an  HTTP request and identify which subdomains are valid by checking if the re..

호그와트 2024.05.20

the dancing rabbit

from itertools import combinations def find_all_sums(arr):     # Use combinations to generate all possible subsets of the array     all_sums = set()     for i in range(1, len(arr) + 1):         for subset in combinations(arr, i):             all_sums.add(sum(subset))     return all_sums def target_sum(arr, target):     all_possible_sums = find_all_sums(arr)     all_possible_sums_list = list(all_..

호그와트 2024.05.13

Modern Capitalism: From Keynesian Economics to Neoliberalism

After Adam Smith and Karl Marx, capitalism has predominantly manifested in two major forms in the contemporary world. The first is Keynesian macroeconomics, which dominated the 20th century. John Maynard Keynes revolutionized the paradigm of economics. Traditionally, Adam Smith viewed the economy as comprising households and businesses, with the government playing a minimal role as a night-watch..

얼마 전 파리와 런던을 여행하며 종합적으로 느낀 점 그에 대한 결론

감사하게도 전 주에 프랑스와 런던을 다녀왔다. 이미 영국에서 살기는 하지만, 런던은 거의 아무것도 모르는 상태라고 봐도 무방하고 파리 역시 이전에 가본 적은 없다. 이번에 휴가 시즌 겸 여자친구도 유럽에 왔기에 함께 정말 즐거운 시간을 보냈다. 이에 대해 결론부터 말해보자면, (사실 나한테 사진들도 꽤 많이 있기 때문에 그 중 일부를 셀렉하여 - 다 내보내기에는 양이 꽤 많다 몇 가지 여행에서 주요한 포인트들을 짚고 싶지만, 시간이 없어서라기보다는 그저 귀찮기에 이러한 글을 쓸지는 모르겠다. 그래서 나는 이 느낀 점 결론을 먼저 쓰고 있는 것이다) 결론적으로 말하자면, '너를 통해서 사랑을 배웠어' 라고 말할 수 있을 거 같다. 상당히 진부한 말임에도, 이번 여행에 대한 종합적인 결론으로써는 아주 훌륭하..

여러 이야기 2024.01.05

사람들은 복잡한 기계를 다룰 때에는 설명서가 필요하다고 생각하면서 이상하게도 우주에서 가장 복잡한 기계 중 하나인 본인의 뇌를 사용할 때는 어떠한 설명서도 필요 없다고 착각한다

사람들은 복잡한 기계를 다룰 때에는 설명서가 필요하다고 생각하면서 정말 이상하게도 현재까지 알려진 우주에서 가장 복잡한 기계 중 하나인 본인의 뇌를 사용할 때는 어떠한 설명서도 필요 없다고 착각한다. 본인의 뇌를 어떻게 사용해야하는지도 모르는 멍청이들이 자신들의 뇌가 나쁜 거 같다고 자신들은 멍청해서 안 되는 거라고 말할 때마다 저 현재까지 알려진 우주에서 가장 복잡한 기계를 저 인간에게 선사한 causa sui에게 미안한 마음과 그러한 자비가 참으로 놀랍게 느껴진다. 나는 그런 사람들에게 오히려 묻고 싶다, 본인의 뇌를 정말 어떻게 사용해야 하는지 찾아보기는 했는지, 그래서 그 사용법을 통해서 본인의 뇌를 최대한으로 활용해볼 노력을 조금이나마 했는지 하루에 단 10분이라도 좋으니 본인이 그렇게 해보고자..