문자열 3

백준[JAVA] 1259.팰린드롬수 - 자바

📖 문제 📃 코드 import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); while (true) { String s = br.readLine(); if (s.equals("0")) break; boolean palindrome = true; int front = s.length() / 2; int length = s.leng..

백준[JAVA] 10989.수 정렬하기 3- 자바

📖 문제 📃 코드 import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws IOException { StringBuilder sb = new StringBuilder(); BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int size = Integer.parseInt(br.readLine()); // Counting Sort int cnt[] = new int[10001]; /* * input * 1