๐Ÿ“’ ์ฝ”ํ…Œ์—ฐ์Šต์žฅ

320x100
๐Ÿ“’ ์ฝ”ํ…Œ์—ฐ์Šต์žฅ

[ํ”„๋กœ๊ทธ๋ž˜๋จธ์Šค] ๋กœ๋˜์˜ ์ตœ๊ณ  ์ˆœ์œ„์™€ ์ตœ์ € ์ˆœ์œ„

lv.1 2021 Dev-Matching: ์›น ๋ฐฑ์—”๋“œ ๊ฐœ๋ฐœ์ž(์ƒ๋ฐ˜๊ธฐ) https://programmers.co.kr/learn/courses/30/lessons/77484 import java.util.*; class Solution { public int[] solution(int[] lottos, int[] win_nums) { int[] answer = {0, 0}; int win_cnt = 0, zero_cnt = 0; for (int lotto: lottos){ // ๋ชจ๋ฅด๋Š” ๋ฒˆํ˜ธ ์นด์šดํŒ… if(lotto == 0){ zero_cnt += 1; } // ๋‹น์ฒจ ๋ฒˆํ˜ธ ์นด์šดํŒ… else if(Arrays.stream(win_nums).anyMatch(x -> x == "lotto")){ win_cnt +=..

๐Ÿ“’ ์ฝ”ํ…Œ์—ฐ์Šต์žฅ

[ํ”„๋กœ๊ทธ๋ž˜๋จธ์Šค] ์‹ ๊ณ  ๊ฒฐ๊ณผ ๋ฐ›๊ธฐ

lv.1 2022 KAKAO BLIND RECRUITMENT https://programmers.co.kr/learn/courses/30/lessons/92334 import java.util.*; class Solution { public int[] solution(String[] id_list, String[] report, int k) { // ๋ฐฐ์—ด ์ƒ์„ฑ (0์œผ๋กœ ์ž๋™ ์ดˆ๊ธฐํ™”) int[] answer = new int[id_list.length]; // HashMap ์ƒ์„ฑ (user: ์‹ ๊ณ ๋‹นํ•œ ํšŸ์ˆ˜) HashMap reports = new HashMap(id_list.length); for (int i = 0;i < id_list.length;i++){ reports.put(id_list[i],0)..

๐Ÿ“’ ์ฝ”ํ…Œ์—ฐ์Šต์žฅ

[CodeUp] python ๊ธฐ์ดˆ 100์ œ: #6027~ #6064

https://codeup.kr/problemsetsol.php?psid=33 ๋ฌธ์ œ์ง‘ / Python ๊ธฐ์ดˆ 100์ œ codeup.kr # 6027 [๊ธฐ์ดˆ-์ถœ๋ ฅ๋ณ€ํ™˜] 10์ง„ ์ •์ˆ˜ ์ž…๋ ฅ๋ฐ›์•„ 16์ง„์ˆ˜๋กœ ์ถœ๋ ฅํ•˜๊ธฐ1 dec = int(input()) print("%x" %dec) # 6028 [๊ธฐ์ดˆ-์ถœ๋ ฅ๋ณ€ํ™˜] 10์ง„ ์ •์ˆ˜ ์ž…๋ ฅ๋ฐ›์•„ 16์ง„์ˆ˜๋กœ ์ถœ๋ ฅํ•˜๊ธฐ2 dec = int(input()) print("%X" %dec) # 6029 [๊ธฐ์ดˆ-๊ฐ’๋ณ€ํ™˜] 16์ง„ ์ •์ˆ˜ ์ž…๋ ฅ๋ฐ›์•„ 8์ง„์ˆ˜๋กœ ์ถœ๋ ฅํ•˜๊ธฐ n = input() hex = int(n, 16) print("%o" %hex) # 6030: [๊ธฐ์ดˆ-๊ฐ’๋ณ€ํ™˜] ์˜๋ฌธ์ž 1๊ฐœ ์ž…๋ ฅ๋ฐ›์•„ 10์ง„์ˆ˜๋กœ ๋ณ€ํ™˜ํ•˜๊ธฐ c = ord(input()) print(c) * ord(๋ฌธ์ž) : ๋ฌธ์ž์˜ ์•„์Šคํ‚ค..

๐Ÿ“’ ์ฝ”ํ…Œ์—ฐ์Šต์žฅ

[CodeUp] python ๊ธฐ์ดˆ 100์ œ: #6001 ~ #6026

https://codeup.kr/problemsetsol.php?psid=33 ๋ฌธ์ œ์ง‘ / Python ๊ธฐ์ดˆ 100์ œ codeup.kr [๊ธฐ์ดˆ-์ถœ๋ ฅ] / [๊ธฐ์ดˆ-์ž…์ถœ๋ ฅ] / [๊ธฐ์ดˆ-๊ฐ’๋ณ€ํ™˜] # 6001 [๊ธฐ์ดˆ-์ถœ๋ ฅ] ์ถœ๋ ฅํ•˜๊ธฐ01 print("Hello") # 6002 [๊ธฐ์ดˆ-์ถœ๋ ฅ] ์ถœ๋ ฅํ•˜๊ธฐ02 print("Hello World") # 6003 [๊ธฐ์ดˆ-์ถœ๋ ฅ] ์ถœ๋ ฅํ•˜๊ธฐ03 print("Hello\nWorld") # 6004 [๊ธฐ์ดˆ-์ถœ๋ ฅ] ์ถœ๋ ฅํ•˜๊ธฐ04 print("'Hello'") # 6005 [๊ธฐ์ดˆ-์ถœ๋ ฅ] ์ถœ๋ ฅํ•˜๊ธฐ05 print('"Hello World"') # 6006 [๊ธฐ์ดˆ-์ถœ๋ ฅ] ์ถœ๋ ฅํ•˜๊ธฐ06 print("\"!@#$%^&*()'") # 6007 [๊ธฐ์ดˆ-์ถœ๋ ฅ] ์ถœ๋ ฅํ•˜๊ธฐ07 print("\"C:\\Downl..

๋ฐ˜์‘ํ˜•