백준
-
백준 문제 15552번 자바 코드알고리즘 문제 풀이 2019. 4. 25. 17:29
import java.io.BufferedReader; import java.io.BufferedWriter; import java.io.IOException; import java.io.InputStreamReader; import java.io.OutputStreamWriter; public class Main { public static void main(String[] args) { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out)); try { int cnt = Integer.pars..
-
백준 문제 1924 번 자바 코드알고리즘 문제 풀이 2019. 4. 25. 15:08
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int month = sc.nextInt(); int day = sc.nextInt(); int [] dayOfMonth = {31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31}; int count = 0; for(int i=1;i