본문 바로가기

호그와트

(365)
어느 통계학자의 기록 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..
모든 스도쿠의 신 어느 날 스도쿠 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
npc 님들 이건 기본이에요 def mystery_peace(file_path):    try:        with open(file_path, 'rb') as file:            file.seek(-26, 2)            data = bytearray(file.read(26))        if len(data) != 26:            raise ValueError("Error: Not enough data found in the file")        for i in range(6, 14):            data[i] = (data[i] - 0x5) & 0xFF        data[14] = (data[14] + 0x3) & 0xFF        result = data.decode('u..
타비의 싹싹김치는 오늘도 참새를 부른다 import randomimport stringdef randomword(length):    letters = string.ascii_lowercase    return ''.join(random.choice(letters) for i in range(length))def randomword2(length):    letters2 = string.ascii_uppercase    return ''.join(random.choice(letters2) for i in range(length))def generate_secure_password(length):    if length 12 or length > 16:        print("Sorry, the length should be between ..