
풀이 import java.util.Scanner; public class Main05 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); //바구니 개수 1~N개 int N = sc.nextInt(); int [] array = new int[N]; // 공을 바꾸는 횟수 int M = sc.nextInt(); //임시저장 공간 변수 = temp int temp; // 바구니 공 초기화 for(int i=0; i
Java/백준
2023. 12. 4. 22:37