목록문제/백준_자바 (102)
sm 기술 블로그
import java.io.*; import java.util.*; class Main { public static void main(String args[])throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); StringBuilder sb = new StringBuilder(); Map cardMap = new HashMap(); br.readLine(); String[] haveCard = br.readLine().split(" "); br.readLine(); String[] compareCard = br.readLine().split(" "); for(String val:haveC..
import java.util.*; import java.io.*; class Main { public static void main(String args[])throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); StringBuilder sb = new StringBuilder(); String[] NM = br.readLine().split(" "); int N = Integer.parseInt(NM[0]); int M = Integer.parseInt(NM[1]); Map PokemonDoGam_str = new HashMap(); Map PokemonDoGam_num = new Has..
import java.io.*; import java.util.*; class Main { public static void main(String args[])throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String [] NM = br.readLine().split(" "); int N = Integer.parseInt(NM[0]); int M = Integer.parseInt(NM[1]); Set repository = new HashSet(); int cnt = 0; for(int i =0; i< N; i++) { repository.add(br.readLine().trim()..
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.HashMap; class Main{ public static void main(String args[])throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); StringBuilder sb = new StringBuilder(); int N = Integer.parseInt(br.readLine()); String[] haveCard = br.readLine().split(" "); int M =..