목록소수경로 (1)
hara
BEAKJOON JAVA ALGORITHM #1963(소수경로)
https://www.acmicpc.net/problem/1963 import java.util.LinkedList; import java.util.Queue; import java.util.Scanner; public class a1963 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int num = sc.nextInt(); boolean[] check = new boolean[10001]; for(int i=2; i
공부/알고리즘
2017. 8. 9. 22:47