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..
giraffe_
'๋น„ํŠธ๋งˆ์Šคํ‚น' ํƒœ๊ทธ์˜ ๊ธ€ ๋ชฉ๋ก