728x90 반응형 100931 (백준) 10093번 : 숫자 - 자바[JAVA] import java.util.Scanner; public class Main { public static void main(String[] args) throws Exception { Scanner sc = new Scanner(System.in); long A = sc.nextLong(); long B = sc.nextLong(); if(A > B) { System.out.println(A - B - 1); for(long i = B + 1; i A) { System.out.println(B - A - 1); for(long i = A + 1; i < B; i++) { System.out.print(i+" .. 2021. 9. 8. 이전 1 다음 728x90 반응형