SWEA - ์ด์ง„์ˆ˜ ํ‘œํ˜„
ยท
Algorithm/SWEA
๋น„ํŠธ๋งˆ์Šคํ‚น์œผ๋กœ ํ‘ธ๋Š” ๋ฌธ์ œ์ด๋‹ค. ํ’€์ด import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.StringTokenizer; /* * M์˜ ์ด์ง„์ˆ˜ ํ‘œํ˜„์˜ ๋งˆ์ง€๋ง‰ N๋น„ํŠธ๊ฐ€ ๋ชจ๋‘ 1๋กœ ์ผœ์ ธ ์žˆ๋Š”์ง€ ์•„๋‹Œ์ง€ ํŒ๋ณ„ */ public class Solution { public static void main(String[] args) throws NumberFormatException, IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int T = Integer.parseI..
SWEA - ์ƒˆ๋กœ์šด ๋ถˆ๋ฉด์ฆ ์น˜๋ฃŒ๋ฒ•
ยท
Algorithm/SWEA
๊ทธ๋ƒฅ ํ’€ ์ˆ˜๋„ ์žˆ์ง€๋งŒ ๋น„ํŠธ๋งˆ์Šคํ‚น์„ ํ™œ์šฉํ•˜์—ฌ ํ’€ ์ˆ˜๋„ ์žˆ๋Š” ๋ฌธ์ œ package algo; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; /* * 1. ์–‘์„ธ๊ธฐ : ์ฒซ ๋ฒˆ์งธ N๋ฒˆ ์–‘, ๋‘ ๋ฒˆ์งธ 2N๋ฒˆ ์–‘ ... k๋ฒˆ์งธ kN๋ฒˆ์–‘ * 2. ํ˜„์žฌ ๋ณธ ์ˆซ์ž : ex) 1295์–‘ -> 1, 2, 9, 5 * 3. 0~9 ๋ชจ๋“  ์ˆซ์ž๋ฅผ ๋ณด๋ฉด ์–‘ ์„ธ๊ธฐ ๋ฉˆ์ถค */ public class swea_์ƒˆ๋กœ์šด๋ถˆ๋ฉด์ฆ์น˜๋ฃŒ๋ฒ• { public static void main(String[] args) throws NumberFormatException, IOException { BufferedReader br =new Bu..
SWEA - 1249๋ฒˆ ๋ณด๊ธ‰๋กœ
ยท
Algorithm/SWEA
https://swexpertacademy.com/main/code/problem/problemDetail.do?contestProbId=AV15QRX6APsCFAYD&categoryId=AV15QRX6APsCFAYD&categoryType=CODE&problemTitle=1249&orderBy=FIRST_REG_DATETIME&selectCodeLang=ALL&select-1=&pageSize=10&pageIndex=1 SW Expert Academy SW ํ”„๋กœ๊ทธ๋ž˜๋ฐ ์—ญ๋Ÿ‰ ๊ฐ•ํ™”์— ๋„์›€์ด ๋˜๋Š” ๋‹ค์–‘ํ•œ ํ•™์Šต ์ปจํ…์ธ ๋ฅผ ํ™•์ธํ•˜์„ธ์š”! swexpertacademy.com ์š”์ฆ˜ DP๋ฅผ ํ’€๊ณ  ์žˆ์–ด์„œ ๊ทธ๋Ÿฐ์ง€ ์ด ๋ฌธ์ œ๋„ ๋ณด๊ณ ์„œ DP๋กœ ํ’€๋ฉด ์ข‹๊ฒ ๋‹ค๋Š” ์ƒ๊ฐ์„ ํ–ˆ๋‹ค. ๊ทธ๋ž˜์„œ DP๋กœ ํ’€์—ˆ๋Š”๋ฐ ๋ชจ๋“  ํ…Œ์ŠคํŠธ์ผ€์ด์Šค๋ฅผ ํ†ต๊ณผํ•˜์ง€ ๋ชปํ–ˆ๋‹ค..
SWEA 5215๋ฒˆ - ํ–„๋ฒ„๊ฑฐ ๋‹ค์ด์–ดํŠธ
ยท
Algorithm/SWEA
https://swexpertacademy.com/main/code/problem/problemDetail.do?contestProbId=AWT-lPB6dHUDFAVT SW Expert Academy SW ํ”„๋กœ๊ทธ๋ž˜๋ฐ ์—ญ๋Ÿ‰ ๊ฐ•ํ™”์— ๋„์›€์ด ๋˜๋Š” ๋‹ค์–‘ํ•œ ํ•™์Šต ์ปจํ…์ธ ๋ฅผ ํ™•์ธํ•˜์„ธ์š”! swexpertacademy.com ์‹คํŒจ ์ฝ”๋“œ - ๋ชจ๋“  tc ํ†ต๊ณผx import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.StringTokenizer; public class Solution { static int N, L; static int[] T, K; static boolean[] vi..
SWEA 6808๋ฒˆ - ๊ทœ์˜์ด์™€ ์ธ์˜์ด์˜ ์นด๋“œ๊ฒŒ์ž„
ยท
Algorithm/SWEA
https://swexpertacademy.com/main/code/problem/problemDetail.do?contestProbId=AWgv9va6HnkDFAW0&categoryId=AWgv9va6HnkDFAW0&categoryType=CODE&problemTitle=6808&orderBy=FIRST_REG_DATETIME&selectCodeLang=ALL&select-1=&pageSize=10&pageIndex=1 SW Expert Academy SW ํ”„๋กœ๊ทธ๋ž˜๋ฐ ์—ญ๋Ÿ‰ ๊ฐ•ํ™”์— ๋„์›€์ด ๋˜๋Š” ๋‹ค์–‘ํ•œ ํ•™์Šต ์ปจํ…์ธ ๋ฅผ ํ™•์ธํ•˜์„ธ์š”! swexpertacademy.com ์ฒ˜์Œ์— ์ธ์˜์ด์˜ ์นด๋“œ ์ˆœ์—ด์„ ์ €์žฅํ•˜๋Š” ๊ฒƒ์˜ ์ž๋ฃŒ๊ตฌ์กฐ๋ฅผ List๋ฅผ ์‚ฌ์šฉํ–ˆ๋”๋‹ˆ ๊ฒฐ๊ณผ๊ฐ’์ด ์ œ๋Œ€๋กœ ๋‚˜์˜ค์ง€ ์•Š์•˜๋‹ค. ๊ทธ ์ด์œ ๋Š” add๋ฅผ ํ•ด์ฃผ๋Š”๋ฐ ์ค‘๊ฐ„์— ..
SWEA 9229๋ฒˆ - ํ•œ๋นˆ์ด์™€ Spot Mart
ยท
Algorithm/SWEA
https://swexpertacademy.com/main/code/problem/problemDetail.do?contestProbId=AW8Wj7cqbY0DFAXN&categoryId=AW8Wj7cqbY0DFAXN&categoryType=CODE&problemTitle=9229&orderBy=FIRST_REG_DATETIME&selectCodeLang=ALL&select-1=&pageSize=10&pageIndex=1 SW Expert Academy SW ํ”„๋กœ๊ทธ๋ž˜๋ฐ ์—ญ๋Ÿ‰ ๊ฐ•ํ™”์— ๋„์›€์ด ๋˜๋Š” ๋‹ค์–‘ํ•œ ํ•™์Šต ์ปจํ…์ธ ๋ฅผ ํ™•์ธํ•˜์„ธ์š”! swexpertacademy.com N๊ฐœ ์ค‘์— 2๊ฐœ๋ฅผ ๊ณ ๋ฅด๋Š” ๊ฒƒ์ด๋‹ˆ ์กฐํ•ฉ ์•Œ๊ณ ๋ฆฌ์ฆ˜์œผ๋กœ ํ’€์–ด์•ผ ํ•˜๋‚˜๋„ ์ƒ๊ฐํ–ˆ์ง€๋งŒ, 2๊ฐœ๋งŒ ๊ณ ๋ฅด๋ฉด ๋˜๋‹ˆ๊นŒ ๊ทธ๋ƒฅ for๋ฌธ ์ด์ค‘์œผ๋กœ ๋Œ๋ ค์„œ ์™„์ „ ํƒ์ƒ‰์„ ํ–ˆ..
giraffe_
'Algorithm/SWEA' ์นดํ…Œ๊ณ ๋ฆฌ์˜ ๊ธ€ ๋ชฉ๋ก