๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ
๋ฐ˜์‘ํ˜•

IT Blog404

[SW Expert Academy] - (D3)7087. ๋ฌธ์ œ ์ œ๋ชฉ ๋ถ™์ด๊ธฐ https://swexpertacademy.com/main/code/problem/problemDetail.do?contestProbId=AWkIdD46A5EDFAXC&categoryId=AWkIdD46A5EDFAXC&categoryType=CODE SW Expert Academy SW ํ”„๋กœ๊ทธ๋ž˜๋ฐ ์—ญ๋Ÿ‰ ๊ฐ•ํ™”์— ๋„์›€์ด ๋˜๋Š” ๋‹ค์–‘ํ•œ ํ•™์Šต ์ปจํ…์ธ ๋ฅผ ํ™•์ธํ•˜์„ธ์š”! swexpertacademy.com ์ฝ”๋“œ import java.util.Arrays; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int T = scan.nextInt(); .. 2020. 6. 4.
[SW Expert Academy] - (D3)5948. ์ƒˆ์ƒ˜์ด์˜ 7-3-5 ๊ฒŒ์ž„ https://swexpertacademy.com/main/code/problem/problemDetail.do?contestProbId=AWZ2IErKCwUDFAUQ&categoryId=AWZ2IErKCwUDFAUQ&categoryType=CODE SW Expert Academy SW ํ”„๋กœ๊ทธ๋ž˜๋ฐ ์—ญ๋Ÿ‰ ๊ฐ•ํ™”์— ๋„์›€์ด ๋˜๋Š” ๋‹ค์–‘ํ•œ ํ•™์Šต ์ปจํ…์ธ ๋ฅผ ํ™•์ธํ•˜์„ธ์š”! swexpertacademy.com ์ฝ”๋“œ import java.util.ArrayList; import java.util.Collections; import java.util.HashSet; import java.util.List; import java.util.Scanner; import java.util.Set; public class Solutio.. 2020. 6. 2.
[SW Expert Academy] - (D3)1493. ์ˆ˜์˜ ์ƒˆ๋กœ์šด ์—ฐ์‚ฐ https://swexpertacademy.com/main/code/problem/problemDetail.do?contestProbId=AV2b-QGqADMBBASw&categoryId=AV2b-QGqADMBBASw&categoryType=CODE SW Expert Academy SW ํ”„๋กœ๊ทธ๋ž˜๋ฐ ์—ญ๋Ÿ‰ ๊ฐ•ํ™”์— ๋„์›€์ด ๋˜๋Š” ๋‹ค์–‘ํ•œ ํ•™์Šต ์ปจํ…์ธ ๋ฅผ ํ™•์ธํ•˜์„ธ์š”! swexpertacademy.com ์ฝ”๋“œ import java.util.Scanner; public class Solution { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int T = scan.nextInt(); for(int tc=1; tc= p) .. 2020. 6. 1.
[SW Expert Academy] - (D3)3142. ์˜์ค€์ด์™€ ์‹ ๋น„ํ•œ ๋ฟ”์˜ ์ˆฒ https://swexpertacademy.com/main/code/problem/problemDetail.do?contestProbId=AV_6xWk6sbADFAWS&categoryId=AV_6xWk6sbADFAWS&categoryType=CODE SW Expert Academy SW ํ”„๋กœ๊ทธ๋ž˜๋ฐ ์—ญ๋Ÿ‰ ๊ฐ•ํ™”์— ๋„์›€์ด ๋˜๋Š” ๋‹ค์–‘ํ•œ ํ•™์Šต ์ปจํ…์ธ ๋ฅผ ํ™•์ธํ•˜์„ธ์š”! swexpertacademy.com ์ฝ”๋“œ import java.util.Scanner; public class Solution { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int T = scan.nextInt(); for(int tc=1; tc 2020. 5. 31.
[SW Expert Academy] - (D3)5515. 2016๋…„ ์š”์ผ ๋งž์ถ”๊ธฐ https://swexpertacademy.com/main/code/problem/problemDetail.do?contestProbId=AWWOwecaFrIDFAV4&categoryId=AWWOwecaFrIDFAV4&categoryType=CODE SW Expert Academy SW ํ”„๋กœ๊ทธ๋ž˜๋ฐ ์—ญ๋Ÿ‰ ๊ฐ•ํ™”์— ๋„์›€์ด ๋˜๋Š” ๋‹ค์–‘ํ•œ ํ•™์Šต ์ปจํ…์ธ ๋ฅผ ํ™•์ธํ•˜์„ธ์š”! swexpertacademy.com ์ฝ”๋“œ import java.util.Scanner; public class Solution { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int T = scan.nextInt(); for(int tc=1; tc 2020. 5. 27.
[SW Expert Academy] - (D3)8500. ๊ทน์žฅ ์ขŒ์„ https://swexpertacademy.com/main/code/problem/problemDetail.do?contestProbId=AWz5yIfq74QDFARQ&categoryId=AWz5yIfq74QDFARQ&categoryType=CODE SW Expert Academy SW ํ”„๋กœ๊ทธ๋ž˜๋ฐ ์—ญ๋Ÿ‰ ๊ฐ•ํ™”์— ๋„์›€์ด ๋˜๋Š” ๋‹ค์–‘ํ•œ ํ•™์Šต ์ปจํ…์ธ ๋ฅผ ํ™•์ธํ•˜์„ธ์š”! swexpertacademy.com ์ฝ”๋“œ import java.util.Arrays; import java.util.Scanner; public class Solution { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int T = scan.nextInt.. 2020. 5. 26.
[SW Expert Academy] - (D3)9317. ์„์ฐฌ์ด์˜ ๋ฐ›์•„์“ฐ๊ธฐ https://swexpertacademy.com/main/code/problem/problemDetail.do?contestProbId=AW-hOY5KeEIDFAVg&categoryId=AW-hOY5KeEIDFAVg&categoryType=CODE SW Expert Academy SW ํ”„๋กœ๊ทธ๋ž˜๋ฐ ์—ญ๋Ÿ‰ ๊ฐ•ํ™”์— ๋„์›€์ด ๋˜๋Š” ๋‹ค์–‘ํ•œ ํ•™์Šต ์ปจํ…์ธ ๋ฅผ ํ™•์ธํ•˜์„ธ์š”! swexpertacademy.com ์ฝ”๋“œ import java.util.Scanner; public class Solution { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int TC = scan.nextInt(); for(int t=1; t 2020. 5. 25.
[SW Expert Academy] - (D3)4751. ๋‹ค์†”์ด์˜ ๋‹ค์ด์•„๋ชฌ๋“œ ์žฅ์‹ https://swexpertacademy.com/main/code/problem/problemDetail.do?contestProbId=AWSNw5jKzwMDFAUr SW Expert Academy SW ํ”„๋กœ๊ทธ๋ž˜๋ฐ ์—ญ๋Ÿ‰ ๊ฐ•ํ™”์— ๋„์›€์ด ๋˜๋Š” ๋‹ค์–‘ํ•œ ํ•™์Šต ์ปจํ…์ธ ๋ฅผ ํ™•์ธํ•˜์„ธ์š”! swexpertacademy.com ์ฝ”๋“œ import java.util.Scanner; public class Solution { public static void main(String[] args) { Scanner scan = new Scanner(System.in); // ์ฒซ๋ฒˆ์งธ, ๋‹ค์„ฏ๋ฒˆ์งธ ํ–‰ String str1 = "..#.."; String str2 = ".#.."; // ๋‘๋ฒˆ์งธ, ๋„ค๋ฒˆ์งธ ํ–‰ String str3 = ".#.. 2020. 5. 25.
[๋ฐฑ์ค€] 12790๋ฒˆ: Mini Fantasy War(๊ตฌํ˜„) https://www.acmicpc.net/problem/12790 12790๋ฒˆ: Mini Fantasy War ๋„ฅ์Šจ์ง€ํ‹ฐ์—์„œ๋Š” ์ตœ๊ทผ SRPG "์Šˆํผ ํŒํƒ€์ง€ ์›Œ"์˜ ํ›„์†์ž‘์œผ๋กœ "๋ฏธ๋‹ˆ ํŒํƒ€์ง€ ์›Œ"๋ฅผ ์ถœ์‹œํ•˜์˜€๋‹ค. ์ „ํŽธ๊ณผ ๋งˆ์ฐฌ๊ฐ€์ง€๋กœ, ๋ฏธ๋‹ˆ ํŒํƒ€์ง€ ์›Œ์—์„œ๋„ ๊ฐ ์บ๋ฆญํ„ฐ์˜ ์ „ํˆฌ๋ ฅ์„ ๊ณ„์‚ฐํ•˜์—ฌ์•ผ ํ•œ๋‹ค. ๊ฐ ์บ๋ฆญํ„ฐ์˜ ์ „ํˆฌ๋ ฅ www.acmicpc.net ์ฝ”๋“œ import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.StringTokenizer; public class Main { public static void main(String[] args) throws IOException { .. 2020. 5. 24.
[๋ฐฑ์ค€] 10409๋ฒˆ: ์„œ๋ฒ„ https://www.acmicpc.net/problem/10409 10409๋ฒˆ: ์„œ๋ฒ„ ๋ฌธ์ œ ๋‹น์‹ ์€ FCFS(First-Come, First-Served)์˜ ๊ทœ์น™์— ๋”ฐ๋ผ ์š”์ฒญ๋œ ์ผ์„ ์ฒ˜๋ฆฌํ•˜๋Š” ์„œ๋ฒ„๋ฅผ ๋‹ด๋‹นํ•˜๊ฒŒ ๋˜์—ˆ๋‹ค. ๋งค์ผ, ๋‹น์‹ ์€ ์ผ์„ ์ฒ˜๋ฆฌํ•˜๊ธฐ ์œ„ํ•ด ์ตœ๋Œ€ T๋ถ„ ๋™์•ˆ ์„œ๋ฒ„์— ์‹œ๊ฐ„์„ ํ• ๋‹นํ•  ์ˆ˜ ์žˆ๋‹ค. ๋‹น์‹ ์€ ์˜ค๋Š˜ ๏ฟฝ www.acmicpc.net ์ฝ”๋“œ import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.StringTokenizer; public class Main { public static void main(String[] args) throws IOExceptio.. 2020. 5. 20.
๋ฐ˜์‘ํ˜•