ํŒŒ์ด์ฌ

๋ฌธ์ œhttps://www.acmicpc.net/problem/14888 ์ฝ”๋“œn = int(input())num = list(map(int, input().split()))operation = list(map(int, input().split())) # +, -, *, /maxi = -1e9mini = 1e9def dfs(idx, result, plus, minus, multiply, divide): global maxi, mini if idx == n: maxi = max(result, maxi) mini = min(result, mini) return if plus > 0: dfs(idx + 1, result + num[idx], pl..
๋ฌธ์ œhttps://www.acmicpc.net/problem/1012 ์ฝ”๋“œfrom collections import dequeT = int(input())for _ in range(T): n, m, k = map(int, input().split()) # ๊ฐ€๋กœ, ์„ธ๋กœ, ๋ฐฐ์ถ”๊ฐœ์ˆ˜ field = [[0 for _ in range(n)] for _ in range(m)] visit = [[False for _ in range(n)] for _ in range(m)] answer = 0 # ๋ฐฐ์ถ” ์ง€๋„ ๊ทธ๋ฆฌ๊ธฐ for l in range(k): x, y = map(int, input().split()) field[y][x] = 1 for i in..
๋•ก๋•ก๐Ÿ‘ฉ๐Ÿป‍๐Ÿ’ป
'ํŒŒ์ด์ฌ' ํƒœ๊ทธ์˜ ๊ธ€ ๋ชฉ๋ก