Jayden`s

    [๋”ฅ๋Ÿฌ๋‹, CV] ์˜คํ† ์ธ์ฝ”๋”, ์ž ์žฌ ๋ฒกํ„ฐ, ์ด์ƒ์น˜ ํƒ์ง€, ๋…ธ์ด์ฆˆ ์ œ๊ฑฐ

    ์˜คํ† ์ธ์ฝ”๋”(AutoEncoder, AE) ์ž…๋ ฅ ๋ฐ์ดํ„ฐ๋ฅผ ์ €์ฐจ์›์˜ ๋ฒกํ„ฐ(์ž ์žฌ ๋ฒกํ„ฐ ; Latent Vector)๋กœ ์••์ถ•ํ•˜๊ณ  ๋‹ค์‹œ ์›๋ž˜ ํฌ๊ธฐ์˜ ์ถœ๋ ฅ ๋ฐ์ดํ„ฐ๋กœ ๋ณต์›ํ•˜๋Š” ์‹ ๊ฒฝ๋ง์ž…๋‹ˆ๋‹ค. ์˜คํ† ์ธ์ฝ”๋”์˜ ๊ฐ€์žฅ ์ค‘์š”ํ•œ ๋ชฉ์ ์€ ์ธ์ฝ”๋”์™€ ๋””์ฝ”๋” ์‚ฌ์ด์˜ ์ž ์žฌ ๋ฒกํ„ฐ๋ฅผ ์–ผ๋งˆ๋‚˜ ์ž˜ ์–ป์–ด๋‚ด๋Š๋ƒ ์ž…๋‹ˆ๋‹ค. ์˜คํ† ์ธ์ฝ”๋”๋Š” ๋น„์ง€๋„ํ•™์Šต์˜ ์ผ์ข…์œผ๋กœ, ์ž…๋ ฅ๊ฐ’์„ ์ •๋‹ต์œผ๋กœ๋„ ์‚ฌ์šฉํ•˜๊ธฐ ๋•Œ๋ฌธ์— ์ž๊ธฐ์ง€๋„ํ•™์Šต์ด๊ธฐ๋„ ํ•ฉ๋‹ˆ๋‹ค. ์ž ์žฌ ๋ฒกํ„ฐ(Latent Vector) ์˜คํ† ์ธ์ฝ”๋”์—์„œ ๊ฐ€์žฅ ์ค‘์š”ํ•œ ๋ชฉ์ ์œผ๋กœ, ์ž…๋ ฅ๊ฐ’์— ๋Œ€ํ•œ ์ค‘์š”ํ•œ ํŠน์„ฑ๋“ค์ด ๊ฐ€์žฅ ํšจ์œจ์ ์œผ๋กœ ์ €์žฅ๋˜๊ฒŒ๋” ํ•™์Šต๋ฉ๋‹ˆ๋‹ค. ์›๋ณธ ๋ฐ์ดํ„ฐ๋ฅผ ์••์ถ• ํ›„ ๋‹ค์‹œ ๋ณต์›ํ•˜๊ณ  ๊ทธ ๋ณต์›๊ฐ’๊ณผ ์›๋ณธ ๋ฐ์ดํ„ฐ(์ž…๋ ฅ๊ฐ’์ด์ž ์‹ค์ œ๊ฐ’)์„ ๋น„๊ตํ•˜์—ฌ ๊ฐ€์ค‘์น˜๊ฐ€ ์กฐ์ •๋˜๋ฉฐ ์ž ์žฌ๋ฒกํ„ฐ๊ฐ€ ๊ฒฐ์ •๋ฉ๋‹ˆ๋‹ค. ์ด์ƒ์น˜ ํƒ์ง€(Anomaly Detection) ์ •์ƒ์œผ๋กœ ๊ทœ์ •..

    [1712] ์†์ต๋ถ„๊ธฐ์ 

    import sys A, B, C = map(int, sys.stdin.readline().rstrip().split()) if B >= C: print(-1) else: nums = A // (C - B) print(nums + 1) 1712 ์†์ต๋ถ„๊ธฐ์  ๊ต‰์žฅํžˆ ์‰ฌ์šด ๋ฌธ์ œ์ธ๋ฐ, ํ™•์‹คํžˆ ์ด๋Ÿฐ ๋ฌธ์ œ์—์„œ ํ”„๋กœ๊ทธ๋ž˜๋ฐ์ ์ธ ์‚ฌ๊ณ ๊ฐ€ ์“ฐ์ด๋Š” ๊ฒƒ ๊ฐ™๋‹ค. ๊ทธ๋ƒฅ for๋ฌธ์„ ํ†ตํ•ด์„œ count ์ฒ˜๋ฆฌํ•˜๋ฉด ํ›จ์”ฌ ์‹œ๊ฐ„์ด ๊ฑธ๋ฆฌ๋Š”๋ฐ ์ด๋ ‡๊ฒŒ ๋‚˜๋ˆ ๋ฒ„๋ฆฌ๋Š” ์‹์œผ๋กœ ํ•˜๋ฉด ๊ธˆ๋ฐฉ ๊ตฌํ•ด์ง„๋‹ค.

    [1316]๊ทธ๋ฃน ๋‹จ์–ด ์ฒด์ปค

    import sys N = int(sys.stdin.readline()) for _ in range(N): noun = sys.stdin.readline().rstrip() arr = [] temp = 0 for alp in noun: arr.append(alp) if len(arr) == 1: continue else: for i in range(len(arr) - 1): if arr[i] != arr[i+1]: temp += 1 if temp >= len(set(arr)): N -= 1 print(N) 1316 ๊ทธ๋ฃน ๋‹จ์–ด ์ฒด์ปค

    [2941]ํฌ๋กœ์•„ํ‹ฐ์•„ ์•ŒํŒŒ๋ฒณ

    import sys alp_cro = sys.stdin.readline().rstrip() arr = ['c=', 'c-', 'dz=', 'd-', 'lj', 'nj', 's=', 'z='] for alp in arr: if alp in alp_cro: alp_cro = alp_cro.replace(alp, '*') print(len(alp_cro)) 2941 ํฌ๋กœ์•„ํ‹ฐ์•„ ์•ŒํŒŒ๋ฒณ

    [5622]๋‹ค์ด์–ผ

    import sys alp_arr = sys.stdin.readline().rstrip() time_tot = 0 for alp in alp_arr: if alp in 'ABC': time_tot += 3 elif alp in 'DEF': time_tot += 4 elif alp in 'GHI': time_tot += 5 elif alp in 'JKL': time_tot += 6 elif alp in 'MNO': time_tot += 7 elif alp in 'PQRS': time_tot += 8 elif alp in 'TUV': time_tot += 9 else: time_tot += 10 print(t..