H

@hmp

몽타주

Python
3 months ago
criminal = [ [200,233,187,215,78,41,32,240,188,94], [107,9,215,4,215,72,211,72,0,73], [86,94,6,211,41,107,102,6,11,82], [94,6,94,86,41,72,107,2,72,103], [32,215,5,187,187,2,9,86,211,211], [84,52,7,222,4,86,13,216,10,35], [0,215,215,121,5,215,86,4,15

미션2

Python
3 months ago
fpn_db = {'41.222.235.255':'41.93.255.255', '154.65.127.255':'102.36.183.255', '196.13.123.255':'196.13.175.255', '102.38.191.255':'102.69.223.255', '102.131.16.255':'102.69.247.255', '102.223.173.25

미션2

Python
3 months ago
fpn_db = {'41.222.235.255':'41.93.255.255','154.65.127.255':'102.36.183.255','196.13.123.255':'196.13.175.255','102.38.191.255':'102.69.223.255','102.131.16.255':'102.69.247.255','102.223.173.255':'43.251.120.0','43.246.152.0':'43.247.104.0','27.117

미션2

Python
3 months ago
fpn_db = {'41.222.235.255':'41.93.255.255','154.65.127.255':'102.36.183.255','196.13.123.255':'196.13.175.255','102.38.191.255':'102.69.223.255','102.131.16.255':'102.69.247.255','102.223.173.255':'43.251.120.0','43.246.152.0':'43.247.104.0','27.117

치즈_의사코드

C++
3 months ago
// ------------------------------- // [1] 입력 및 초기 설정 // ------------------------------- // N, M 입력 받기 // board 배열 입력 받기 // totalCheese = 0

1260

C++
3 months ago
#include <iostream> #include <vector> #include <algorithm> using namespace std; // 전역 변수: 최대 정점 1000개, 간선은 여유 있게 설정 vector<int> adj[1001]; bool visited[1001];

치즈

C++
3 months ago
#include <iostream> #include <vector> using namespace std; int N, M; int board[101][101]; bool visited[101][101]; int dx[] = {0, 0, 1, -1}; int dy[] = {1, -1, 0, 0};

0329_지민

Python
3 months ago
# -------------------------------------------- # [문제 1] x1x1x1 찾기 # -------------------------------------------- # 리스트를 순회하면서 "x1x1x1x1"을 찾으면 종료 characters = ["noob", "guest", "builderman", "x1x1x1x1", "admin"] for i in range(5): # print(chara

0329_지민

Python
3 months ago
# -------------------------------------------- # [문제 1] x1x1x1 찾기 # -------------------------------------------- # 리스트를 순회하면서 "x1x1x1x1"을 찾으면 종료 characters = ["noob", "guest", "builderman", "x1x1x1x1", "admin"] for c in characters: print(c)

최대최소값

Python
3 months ago
# # ============================================ # # [문제 1] 최솟값 찾기 # # ============================================ # a = [7, 3, 9, 2, 5, 1, 8] # # 아래에 코드 작성 # min_value = a[0]

0329_Danny

Python
3 months ago
#9369 Problem: Last Three Integers # Description: # Write a program that accepts up to 100 integers one by one. # The program should stop taking input if -1 is entered. # Output the last three integers entered (excluding the -1). # I

0329___

Python
3 months ago
# ============================================================ # Problem 1: 1D Herdle (Basic) # # Given two strings: 'answer' and 'guess'. # # Rules: # - Same position + Same character -> Green # - Different position + Same character -> Yellow # -

가사분석_연습문제

Python
3 months ago
# ============================== # [연습문제 1] 모음 찾기 (기초) # ============================== # 문자열이 주어질 때, 모음(a, e, i, o, u)만 출력하세요. # # 입력 예시 # apple # # 출력 예시 # a e

문제 해결

Python
3 months ago
# 영어 가사를 분석하는 프로그램을 만들고 싶어해요. 아래가 조사하고 싶은 목록이에요. # - 등장한 단어 목록 # - 모음 개수 # - 자음 개수 lyrics=''' I can hear you but I won't Some look for trouble while others don't There's a thousand reasons I should go about my day

[문제 3] 영역 개수 구하기

C++
3 months ago
/* [문제 3] 영역 개수 구하기 전체 배열에서 1로 이루어진 영역이 몇 개인지 구하시오. [입력] 5 5 1 1 0 0 0 0 1 0 1 1 0 0 0 1 0

단지번호붙이기_연습문제1

C++
3 months ago
/* [문제 1] 방문 표시하기 5x5 배열이 주어진다. 값이 1인 곳만 방문한다고 할 때, (0,0)부터 DFS로 탐색하며 방문한 위치를 출력하시오. [입력] 5 5 1 1 0 0 0

0324_DFS_치즈연습문제

C++
3 months ago
// [문제] 공기 DFS + 치즈 발견하기 // 0은 공기, 1은 치즈 // (0,0)에서 시작하여 공기(0)만 DFS로 탐색하시오 // 탐색 중에 치즈(1)를 만나면 좌표를 출력하시오 (중복 없이) 입력 5 5 0 0 1 0 0 0 1 1 0 1 0 0 0 1 0

조건

C++
3 months ago
// [문제 1] // n x m 격자에서 (y, x)가 주어질 때 // 범위 안이면 "IN", 밖이면 "OUT" 출력 // 입력 예시 // 5 5 // -1 3 // 출력 // OUT

치즈_지환

C++
3 months ago
#include <iostream> #include <vector> using namespace std; int n = 5, m = 5; vector<vector<int>> board = { {0,0,0,0,0}, {0,1,1,1,0}, {0,1,0,1,0},

19

Python
3 months ago
# 명령 목록이 주어진다 # 물건을 저장할 빈 딕셔너리를 만든다 # 명령을 하나씩 확인한다 # 명령을 공백 기준으로 나눈다 # 만약 명령이 "REPORT"라면 # 딕셔너리에 있는 모든 물건과 개수를 출력한다 # 아니고, 나눈 결과가 2개라면