삐까냥의 파도타기
문제 출처 : https://www.acmicpc.net/problem/1764 import java.util.Collections;import java.util.HashSet;import java.util.LinkedList;import java.util.Scanner; public class Q1764 { public static void main(String[] args) {Scanner sc = new Scanner(System.in);int noListen = sc.nextInt();int noSee = sc.nextInt();HashSet noListenList = new HashSet();for ( int i = 0; i < noListen; i++ ) {noListenList.add(sc...
문제 출처 : https://www.acmicpc.net/problem/2941 import java.util.Scanner; public class Q1475 { public static void main(String[] args) {Scanner sc = new Scanner(System.in);String string = sc.nextLine();string = string.replaceAll("dz=", "a");string = string.replaceAll("lj", "a");string = string.replaceAll("nj", "a");string = string.replaceAll("c-", "a");string = string.replaceAll("d-", "a");string = ..