목록모두다돌려보기 (1)
hara
BEAKJOON JAVA ALGORITHM #1476(날짜계산)
https://www.acmicpc.net/problem/1476 import java.util.Scanner; public class a1476 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int E = sc.nextInt(); int S = sc.nextInt(); int M = sc.nextInt(); int e=0, s=0, m=0, count=0; while(true) { if(e == 16) { e = 1; } if(s == 29) { s = 1; } if(m == 20) { m = 1; } if(e == E && s == S && m == M) { System.out.println(count);..
공부/알고리즘
2017. 8. 9. 10:57