๋ฐ์ํ Algorithm242 [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. [๋ฐฑ์ค] 10539๋ฒ: ์๋น์ด์ ์์ด https://www.acmicpc.net/problem/10539 10539๋ฒ: ์๋น์ด์ ์์ด ๋ฌธ์ ์๋น์ด๋ ์ฌ์ฌํด์ ์์ด์ ๊ฐ์ง๊ณ ๋๊ณ ์๋ค. ๋จผ์ , ์ ์ ์์ด A๋ฅผ ์ด๋ค. ๊ทธ๋ฆฌ๊ณ ๊ทธ ์๋์ ์ ์ ์์ด A์ ํด๋น ํญ๊น์ง์ ํ๊ท ๊ฐ์ ๊ทธ ํญ์ผ๋ก ํ๋ ์ ์ ์์ด B๋ฅผ ์ด๋ค. ์๋ฅผ ๋ค์ด, ์์ด A๏ฟฝ๏ฟฝ www.acmicpc.net ์ฝ๋ import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int B = scan.nextInt(); int[] bArr = new int[B]; int[] aArr = new int[B]; for(int i=0; i 2020. 5. 20. [๋ฐฑ์ค] 2909๋ฒ: ์บ๋ ๊ตฌ๋งค(๊ตฌํ) https://www.acmicpc.net/problem/2909 2909๋ฒ: ์บ๋ ๊ตฌ๋งค ๋ฌธ์ ์ค๋์ ํ์ดํธ๋ฐ์ด์ด๋ค. ์๊ทผ์ด๋ ์ฌ์์น๊ตฌ๋ฅผ ์ํด์ ์ฌํ์ ์ฌ๋ ค๊ณ ํ๋ค. ํ์ง๋ง, ์๊ทผ์ด๋ ๋ ํนํ ์ฑ๊ฒฉ์ ๊ฐ์ง๊ณ ์์ด์, ํน์ ์ก๋ฉด๊ฐ์ ์งํ๋ง ๊ฐ์ง๊ณ ์๋๋ค. ๋, ๊ฑฐ์ค๋ฆ๋์ ๋ฐ์ง ์๏ฟฝ๏ฟฝ www.acmicpc.net ์ฝ๋ import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int C = scan.nextInt();// ์ฌํ ๊ฐ๊ฒฉ int K = scan.nextInt();// 0์ ๊ฐ์ double num = Math.pow(10, K);// .. 2020. 5. 18. ์ด์ 1 2 3 4 5 6 7 ยทยทยท 25 ๋ค์ ๋ฐ์ํ