MapleStory Finger Point

๐Ÿƒ‍โ™‚๏ธBaekjoon 128

[2884/JAVA] ์•Œ๋žŒ ์‹œ๊ณ„

import java.util.Scanner; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int b = sc.nextInt(); //45 + if (b >= 45) { b-=45; System.out.printf("%d %d", a ,b); } else if (a == 0) { a += 23; b = (60+b)-45; System.out.printf("%d %d", a ,b); } else { a -= 1; b = (60+b)-45; System.out.printf("%d %d", a ,b); } } } ์กฐ๊ฑด๋งŒ ์ž˜ ์ƒ๊ฐํ•ด์„œ ์ฝ”๋”ฉํ•ด์ฃผ๋ฉด ..

[2753/JAVA] ์œค๋…„

import java.util.Scanner; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int a = sc.nextInt(); if (a%4 == 0){ //4์˜๋ฐฐ์ˆ˜์ด๊ณ  if (a%100 != 0){ System.out.printf("1"); } else if (a%400 == 0){ System.out.printf("1"); } else { System.out.printf("0"); } } else System.out.printf("0"); } }โ€‹ import java.util.Scanner; public class Main { public static void main..