삐까냥의 파도타기
문제 출처 : https://www.acmicpc.net/problem/2908 import java.util.Scanner; public class Q2908 { public static void main(String[] args) {Scanner sc = new Scanner(System.in);int first = reverse(sc.nextInt());int second = reverse(sc.nextInt());System.out.println(first > second ? first : second); }public static int reverse(int su) {int reverse = 0;while (su != 0 ) {reverse *= 10;reverse += (su%10);su /=..
문제 출처 : https://www.acmicpc.net/problem/1157 import java.util.Scanner; public class Q1157 { public static void main(String[] args) {Scanner sc = new Scanner(System.in);String string = sc.nextLine().toUpperCase();int max = 0;int[] alphabet = new int[26];for ( int i = 0; i < string.length(); i++ ) {int temp = Integer.valueOf(string.charAt(i)) - 65;if ( 0
문제 출처 : https://www.acmicpc.net/problem/10809 import java.util.Scanner; public class Q10809 { public static void main(String[] args) {Scanner sc = new Scanner(System.in);String string = sc.nextLine();int[] alphabet = new int[26];for ( int i = 0; i < string.length(); i++ ) {int temp = Integer.valueOf(string.charAt(i)) - 97;if ( alphabet[temp] == 0 ) {alphabet[temp] = i+1;}}for ( int i = 0; i < 26..