CodeUP 기초100제 2020-04-1( 26~35,38,39,44)
1026번 시분초 입력받아 분만 출력하기 #include int main (void) { int h, m, s; scanf("%d:%d:%d", &h, &m, &s); printf("%d", m); return 0; } 1027번 년월일 입력 받아 형식 바꿔 출력하기 import java.util.Scanner; class Main { public static void main(String[] args){ Scanner scan = new Scanner(System.in); String a = scan.nextLine(); a = a.trim(); String[] b = a.split("\\."); int y = Integer.parseInt(b[0]); int m = Integer.parseInt(b[..
Algorithm/CoudUp 입출력문 및 연산자
2020. 4. 13. 13:52