본문 바로가기

분류 전체보기

(1787)
happy monday import socketimport binasciidef connect_and_get_flag(server_ip, server_port):    with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as s:        s.connect((server_ip, server_port))                # Read the welcome message with the encoded flag        welcome_message = s.recv(1024).decode()        print("Received:", welcome_message)                # Extract the hex-encoded flag from the welc..
어느 통계학자의 기록 with 캐럿 my codes (2) %% Part (a): Finding the Standard Deviation% X is the weight of coffee jars in gram% X ~ N(100.5, o)% p(X% Given valuesmean_weight_a = 100.5; rejection_probability_a = 0.03;cutoff_weight_a = 100; % Find the z-score corresponding to the bottom 3% of the normal distributionz_score_rejection_a = norminv(rejection_probability_a);% Solve for the standard deviationstd_dev_a = (cutoff_weight_a - mean_w..
어느 통계학자의 기록 with 캐럿 my codes (1) close all;% Parametersn = 125; p = 0.10;  x = 0:n;% Calculate PMF and CDFpmf = binopdf(x, n, p);cdf = binocdf(x, n, p);% Plot PMFfigure;stem(x, pmf, 'filled');title('=PMF');xlabel('Number of Passengers Showing Up');ylabel('Probability');% Plot CDFfigure;stairs(x, cdf, 'b');title('=CDF');xlabel('Number of Passengers Showing Up');ylabel('Cumulative Probability');
AI가 졸린지 아닌지 판별할 수 있는 건에 관하여 This app begins by setting up directories to load images of closed and open eyes, followed by images of yawning and non-yawning faces. These images are then labeled and split into training and testing sets to prepare for building two convolutional neural networks (CNNs). One CNN is trained to recognize whether eyes are open or closed, while the other identifies yawning. With the help of image au..
Where is caesar ? def caesar_cipher(text, shift):    def shift_char(c, shift):        if c.isalpha():            ascii_offset = ord('A') if c.isupper() else ord('a')            shifted = chr((ord(c) - ascii_offset + shift) % 26 + ascii_offset)            return shifted        else:            return c        encoded_text = ""    for char in text:        encoded_text += shift_char(char, shift)    return encoded_te..
한국은 개ㅂㅅ 국가이다 (12사단 훈련병 사망사건에 관한 고찰) 군장 상태로 달리는 게 엄청난 가혹행위라는 걸 사실 이번에 처음 알았다 ㅋㅋㅋㅋㅋㅋ 사실 내가 대대에 있었을 때 사단 전체에 탑 팀 훈련이 있었는데, 그 훈련에 군장 상태로 5킬로미터 정도 달리기가 있었기 때문이다 ㅇㅅㅇ 그리고 참고로 우리 중대가 사단 전체 1등이었다. 그 훈련으로 사단 1등을 먹었다. (그래서 그냥 대부분 다 하는 건 줄 알았댜...)  물론, 당연히 당연히 이런 탑 팀을 할 때는 가장 체력이 좋은 친구들 특히 일병이나 상병 쯤 되는 그것도 그냥 일병도 아니고 1년 정도는 되는 (혹은 상병이라면 그 이상) 경험 많은 친구들 위주로만 한다. 그게 당연한 거고 사람 죽일 생각이 아니라면 그렇게 하는 것이 알맞다. 처음 중대에 있었을 때 그 때는 사람이 적어서 다 훈련에 나갔지만(결국 그래..
모든 스도쿠의 신 어느 날 스도쿠 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..
tryhackme anthem