๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ

์ „์ฒด ๊ธ€51

[๋ฐฑ์ค€ 9012] ๊ด„ํ˜ธ(Java) - Stack [๋ฌธ์ œ๋งํฌ] https://www.acmicpc.net/problem/9012 [ํ’€์ด์†Œ์Šค] 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 package algorithm; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.Stack; public class Stack9012 { public static void main(String[] args) throws NumberFormatException, IOExce.. 2020. 5. 4.
[๋ฐฑ์ค€ 10854] ํ (JAVA) - Queue [๋ฌธ์ œ๋งํฌ] https://www.acmicpc.net/problem/10845 [ํ’€์ด์†Œ์Šค] 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 package algorithm; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.LinkedList; import java.util.StringTokenizer; public cl.. 2020. 5. 3.
[๋ฐฑ์ค€ 15953] ์ƒ๊ธˆํ—Œํ„ฐ (JAVA) [๋ฌธ์ œ๋งํฌ] https://www.acmicpc.net/problem/15953 15953๋ฒˆ: ์ƒ๊ธˆ ํ—Œํ„ฐ ์ฒซ ๋ฒˆ์งธ ์ค„์— ์ œ์ด์ง€๊ฐ€ ์ƒ์ƒ๋ ฅ์„ ๋ฐœํœ˜ํ•˜์—ฌ ๊ฐ€์ •ํ•œ ํšŸ์ˆ˜ T(1 ≤ T ≤ 1,000)๊ฐ€ ์ฃผ์–ด์ง„๋‹ค. ๋‹ค์Œ T๊ฐœ ์ค„์—๋Š” ํ•œ ์ค„์— ํ•˜๋‚˜์”ฉ ์ œ์ด์ง€๊ฐ€ ํ•ด๋ณธ ๊ฐ€์ •์— ๋Œ€ํ•œ ์ •๋ณด๊ฐ€ ์ฃผ์–ด์ง„๋‹ค. ๊ฐ ์ค„์—๋Š” ๋‘ ๊ฐœ์˜ ์Œ์ด ์•„๋‹Œ ์ •์ˆ˜ a(0 ≤ a ≤ 100)์™€ b(0 ≤ b ≤ 64)๊ฐ€ ๊ณต๋ฐฑ ํ•˜๋‚˜๋ฅผ ์‚ฌ์ด๋กœ ๋‘๊ณ  ์ฃผ์–ด์ง„๋‹ค. www.acmicpc.net [ํ’€์ด์†Œ์Šค] 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 .. 2020. 5. 2.