์ ์ฒด ๊ธ
-
[Jupyterhub for Kubernetes-2] JupyterHub ์ค์นBackend/Kubernetes 2022. 3. 20. 16:46
1. JupyterHub Chart ์ค์น helm ๋ช ๋ น์ด์ Helm chart์์ repository๋ฅผ ์ฐพ์ jupyterhub chart๋ฅผ ์ค์นํ ์ ์๋ค. helm repo add jupyterhub https://jupyterhub.github.io/helm-chart/ helm repo update ๋ค์๊ณผ ๊ฐ์ ์ถ๋ ฅ์ด ๋์จ๋ค. Happy Helming! Hang tight while we grab the latest from your chart repositories... ...Skip local chart repository ...Successfully got an update from the "stable" chart repository ...Successfully got an update f..
-
[BOJ] 11729๋ฒAlgorithm/Baekjoon Online Judge 2022. 3. 20. 15:47
https://www.acmicpc.net/problem/11729 11729๋ฒ: ํ๋ ธ์ด ํ ์ด๋ ์์ ์ธ ๊ฐ์ ์ฅ๋๊ฐ ์๊ณ ์ฒซ ๋ฒ์งธ ์ฅ๋์๋ ๋ฐ๊ฒฝ์ด ์๋ก ๋ค๋ฅธ n๊ฐ์ ์ํ์ด ์์ฌ ์๋ค. ๊ฐ ์ํ์ ๋ฐ๊ฒฝ์ด ํฐ ์์๋๋ก ์์ฌ์๋ค. ์ด์ ์๋์น๋ค์ด ๋ค์ ๊ท์น์ ๋ฐ๋ผ ์ฒซ ๋ฒ์งธ ์ฅ๋์์ ์ธ ๋ฒ์งธ ์ฅ๋๋ก www.acmicpc.net ํ๋ ธ์ด ํ ์๊ณ ๋ฆฌ์ฆ ์์ ๊ฐ์ด ํ๋ ธ์ด ํ์ ์์ ์ฅ๋์์ ๋ชฉ์ ์ฅ๋๊น์ง ์ด๋์ํค์ํด ์ํ์ ์์ง์ด๋ ๋ฐฉ์์ ๋ํ ์๊ณ ๋ฆฌ์ฆ์ด๋ค. ์ด๋ ํ๋ฒ์ ํ ๊ฐ์ ์ํ๋ง์ ์ฎ๊ธธ ์ ์๊ณ ์์์ ธ ์๋ ์ํ์ ํญ์ ์์ ์ํ์ด ์๋ ๊ฒ๋ณด๋ค ์์์ผํ๋ค. ์ํ์ด 1๊ฐ๋ผ๋ฉด, 1๋ฒ ์ฅ๋์์ 3๋ฒ ์ฅ๋๋ก 1๋ฒ ์ํ์ ์์ง์ธ๋ค. 1->3 ์ํ์ด 2๊ฐ๋ผ๋ฉด, 1๋ฒ ์ฅ๋์์ 2๋ฒ ์ฅ๋๋ก 1๋ฒ ์ํ์ ์์ง์ธ๋ค. 1->2..
-
[BOJ] 1002๋ฒAlgorithm/Baekjoon Online Judge 2022. 3. 16. 17:29
https://www.acmicpc.net/problem/1002 1002๋ฒ: ํฐ๋ ๊ฐ ํ ์คํธ ์ผ์ด์ค๋ง๋ค ๋ฅ์ฌ๋ช ์ด ์์ ์ ์๋ ์์น์ ์๋ฅผ ์ถ๋ ฅํ๋ค. ๋ง์ฝ ๋ฅ์ฌ๋ช ์ด ์์ ์ ์๋ ์์น์ ๊ฐ์๊ฐ ๋ฌดํ๋์ผ ๊ฒฝ์ฐ์๋ -1์ ์ถ๋ ฅํ๋ค. www.acmicpc.net Python3 import math if __name__ == '__main__': n = int(input()) for _ in range(n): x1, y1, r1, x2, y2, r2 = map(int, input().split()) distance = math.sqrt((x1 - x2) ** 2 + (y1 - y2) ** 2) if distance == 0 and r1 == r2: print(-1) elif abs(r1 - r2) == dis..
-
[BOJ] 3053๋ฒAlgorithm/Baekjoon Online Judge 2022. 3. 16. 16:42
https://www.acmicpc.net/problem/3053 3053๋ฒ: ํ์ ๊ธฐํํ ์ฒซ์งธ ์ค์๋ ์ ํด๋ฆฌ๋ ๊ธฐํํ์์ ๋ฐ์ง๋ฆ์ด R์ธ ์์ ๋์ด๋ฅผ, ๋์งธ ์ค์๋ ํ์ ๊ธฐํํ์์ ๋ฐ์ง๋ฆ์ด R์ธ ์์ ๋์ด๋ฅผ ์ถ๋ ฅํ๋ค. ์ ๋ต๊ณผ์ ์ค์ฐจ๋ 0.0001๊น์ง ํ์ฉํ๋ค. www.acmicpc.net Python3 import math if __name__ == '__main__': r = int(input()) print(r*r*math.pi) print(r*r*2) ์ ํด๋ฆฌ๋ ๊ธฐํํ์์ ์์ ๋์ด๋ pi*r**2 ์ด๊ณ ํ์ ๊ธฐํํ์์ ์์ ๋์ด๋ r*r*2์ด๋ค. ๋ฐ๋ผ์ ์ด๋ฅผ ๊ณต์์ ์ฌ์ฉํ์ฌ ์ฝ๋๋ฅผ ์์ฑํ๋ค. pi ๊ฐ์ ๊ฒฝ์ฐ math ๋ผ์ด๋ธ๋ฌ๋ฆฌ๋ฅผ ์ฌ์ฉํ๋ค.
-
[BOJ] 4153๋ฒAlgorithm/Baekjoon Online Judge 2022. 3. 16. 15:18
https://www.acmicpc.net/problem/4153 4153๋ฒ: ์ง๊ฐ์ผ๊ฐํ ์ ๋ ฅ์ ์ฌ๋ฌ๊ฐ์ ํ ์คํธ์ผ์ด์ค๋ก ์ฃผ์ด์ง๋ฉฐ ๋ง์ง๋ง์ค์๋ 0 0 0์ด ์ ๋ ฅ๋๋ค. ๊ฐ ํ ์คํธ์ผ์ด์ค๋ ๋ชจ๋ 30,000๋ณด๋ค ์์ ์์ ์ ์๋ก ์ฃผ์ด์ง๋ฉฐ, ๊ฐ ์ ๋ ฅ์ ๋ณ์ ๊ธธ์ด๋ฅผ ์๋ฏธํ๋ค. www.acmicpc.net Python3 if __name__ == '__main__': while True: side = list(map(int, input().split())) if sum(side) == 0: break side.sort() if side[0]**2 + side[1]**2 == side[2]**2: print("right") else: print("wrong") ๋ฌธ์ ์๋ ์ฐ์ฌ์ ธ ์์ง ์์ง๋ง ํผํ๊ณ ๋ผ์ค์ ์ ๋ฆฌ๋ฅผ ์ด์ฉํ ๋ฌธ..