반응형
반응형
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.StringTokenizer; public class Main { public void solution() throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int targetChannel = Integer.parseInt(br.readLine()); int brokenButtonCount = Integer.parseInt(br.readLine()); boolean[] brokenButton ..
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.StringTokenizer; public class Main { int[][] paper = null; boolean[][] check = null; int result = 0; int n = 0; int m = 0; int[] dx = {0, 0, 1, -1}; int[] dy = {1, -1, 0, 0}; public void solution() throws IOException { initPaperAndCheck(); for(int i = 0; i
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public void solution() throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); StringBuilder sb = new StringBuilder(); int n = Integer.parseInt(br.readLine()); int result = 0; int count = 1; int num = 10; for(int i = 1; i
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.StringTokenizer; public class Main { public void solution() throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); StringTokenizer st = new StringTokenizer(br.readLine()); int earth = Integer.parseInt(st.nextToken()); int sun = Integer.parseInt(st...
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { String[] candyColor; int n = 0; int max = 0; public void solution() throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); StringBuilder sb = new StringBuilder(); n = Integer.parseInt(br.readLine()); for(int i = 0; i
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.ArrayList; import java.util.Arrays; import java.util.Collections; public class Main { public void solution() throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); StringBuilder sb = new StringBuilder(); Integer[] height = new Integer[9]; int sum =..