๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ

Python54

[Web] ๋กœ์ปฌ ํ™˜๊ฒฝ์—์„œ SpringBoot์™€ Flask์— RabbitMQ ์ ์šฉํ•˜๊ธฐ ๐Ÿ“ RabbitMQ ์„ค์น˜ 1๏ธโƒฃ RabbitMQ ๋ฐ Erlang ์„ค์น˜ ์„ค์น˜๋Š” ์•„๋ž˜ ์‚ฌ์ดํŠธ๋ฅผ ์ฐธ๊ณ ํ–ˆ๋‹ค. Windows10์— RabbitMQ ๋น ๋ฅด๊ฒŒ ์„ค์น˜ํ•˜๊ธฐ (with Erlang), ๊ทธ๋ฆฌ๊ณ  RabbitMQ management ๋„์šฐ๊ธฐ (tistory.com) Windows10์— RabbitMQ ๋น ๋ฅด๊ฒŒ ์„ค์น˜ํ•˜๊ธฐ (with Erlang), ๊ทธ๋ฆฌ๊ณ  RabbitMQ management ๋„์šฐ๊ธฐ MSA ํ”„๋กœ์ ํŠธ๋ฅผ ์ค€๋น„ํ•˜๋ฉฐ ์—ฌ๋Ÿฌ๊ฐ€์ง€ ์ค€๋น„์‚ฌํ•ญ์ด ์žˆ์ง€๋งŒ ๋А์Šจํ•œ ๊ฒฐํ•ฉ์„ ์œ„ํ•ด MQ (Message Queue) ๊ฐ€ ํ•„์š”ํ•˜๋‹ค. ์—ฌ๋Ÿฌ๊ฐ€์ง€ ์ด๋Ÿฐ ๋ฉ”์„ธ์ง• ๊ธฐ๋Šฅ์ด ์žˆ๋Š” ํˆด์ด ์žˆ์ง€๋งŒ RabbitMQ๋ฅผ ์ผ๋‹จ ์‚ฌ์šฉํ•ด๋ณด๋ คํ•œ๋‹ค. ์–ด๋–ป๊ฒŒ ์„ค oingdaddy.tistory.com 2๏ธโƒฃ ํ™˜๊ฒฝ๋ณ€์ˆ˜ ์„ค์ • ์œ„ ๊ณผ์ •๋Œ€๋กœ ์ง„ํ–‰ํ•œ ํ›„ ํ™˜๊ฒฝ ๋ณ€์ˆ˜ ์„ค์ •์ด ํ•„์š”ํ•˜๋‹ค.. 2023. 4. 2.
[Python Algorithm] Contact SWEA #1238 ๋ฌธ์ œ https://swexpertacademy.com/main/code/problem/problemDetail.do SW Expert Academy SW ํ”„๋กœ๊ทธ๋ž˜๋ฐ ์—ญ๋Ÿ‰ ๊ฐ•ํ™”์— ๋„์›€์ด ๋˜๋Š” ๋‹ค์–‘ํ•œ ํ•™์Šต ์ปจํ…์ธ ๋ฅผ ํ™•์ธํ•˜์„ธ์š”! swexpertacademy.com ๋‚ด ๋ฌธ์ œ ํ’€์ด from collections import deque for t in range(10): l, s = map(int, input().split()) lst = list(map(int, input().split())) maximum = max(lst) memory = [set() for _ in range(maximum)] for i in range(0, l, 2): memory[lst[i]-1].add(lst[i+1]) for i i.. 2022. 7. 12.
[Python Algorithm] ๋ฏธ๋กœ1 SWEA #1226 ๋ฌธ์ œ https://swexpertacademy.com/main/code/problem/problemDetail.do?contestProbId=AV14vXUqAGMCFAYD SW Expert Academy SW ํ”„๋กœ๊ทธ๋ž˜๋ฐ ์—ญ๋Ÿ‰ ๊ฐ•ํ™”์— ๋„์›€์ด ๋˜๋Š” ๋‹ค์–‘ํ•œ ํ•™์Šต ์ปจํ…์ธ ๋ฅผ ํ™•์ธํ•˜์„ธ์š”! swexpertacademy.com ๋‚ด ๋ฌธ์ œ ํ’€์ด for _ in range(10): t = int(input()) maze = [[] for _ in range(16)] start = (0, 0) check = False for i in range(16): now = list(map(int, list(input()))) if 2 in now: tmp = now.index(2) start = (i, tmp) maze[i] = n.. 2022. 7. 5.
[Python Algorithm] ๋ณด๊ธ‰๋กœ SWEA #1249 ๋ฌธ์ œ https://swexpertacademy.com/main/code/problem/problemDetail.do SW Expert Academy SW ํ”„๋กœ๊ทธ๋ž˜๋ฐ ์—ญ๋Ÿ‰ ๊ฐ•ํ™”์— ๋„์›€์ด ๋˜๋Š” ๋‹ค์–‘ํ•œ ํ•™์Šต ์ปจํ…์ธ ๋ฅผ ํ™•์ธํ•˜์„ธ์š”! swexpertacademy.com ๋‚ด ๋ฌธ์ œ ํ’€์ด import math from collections import deque tc = int(input()) INF = math.inf for t in range(tc): n = int(input()) mapArr = [list(map(int, list(input()))) for _ in range(n)] visited = [[INF for _ in range(n)] for _ in range(n)] dx = [0, 0, -1, 1] .. 2022. 7. 5.
[Python Algorithm] ๊ฒฝ๋กœ ์ฐพ๊ธฐ BOJ #11403 (feat. BFS, ํ”Œ๋กœ์ด๋“œ ์›Œ์…œ) ๋ฌธ์ œ https://www.acmicpc.net/problem/11403 11403๋ฒˆ: ๊ฒฝ๋กœ ์ฐพ๊ธฐ ๊ฐ€์ค‘์น˜ ์—†๋Š” ๋ฐฉํ–ฅ ๊ทธ๋ž˜ํ”„ G๊ฐ€ ์ฃผ์–ด์กŒ์„ ๋•Œ, ๋ชจ๋“  ์ •์  (i, j)์— ๋Œ€ํ•ด์„œ, i์—์„œ j๋กœ ๊ฐ€๋Š” ๊ฒฝ๋กœ๊ฐ€ ์žˆ๋Š”์ง€ ์—†๋Š”์ง€ ๊ตฌํ•˜๋Š” ํ”„๋กœ๊ทธ๋žจ์„ ์ž‘์„ฑํ•˜์‹œ์˜ค. www.acmicpc.net ๋‚ด ๋ฌธ์ œ ํ’€์ด (BFS) import sys sys.setrecursionlimit(10 ** 6) n = int(sys.stdin.readline().strip()) table = [] for _ in range(n): table.append(list(map(int, sys.stdin.readline().strip().split()))) result = table def bfs(queue, find, checkList): idx =.. 2022. 6. 23.