-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSolution_1266.java
64 lines (48 loc) · 1.32 KB
/
Solution_1266.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.StringTokenizer;
public class Solution_1266 {
static boolean[] prime = new boolean[19];
static double[] comb = new double[19];
static long[] fac = new long[19];
//18이하의 소수 찾기
static void factorial(int n) {
for(int i = n;i>1;i--) {
if(fac[i] != 0) {
}
}
}
static double calComb(int r) {
int ans = 0;
return ans;
}
static void primeNum() {
prime[0] = true;
prime[1]=true;
for(int i=2;i<=(int)Math.sqrt(18);i++) {
if(prime[i]) {
continue;
}
for(int j=i+i;j<prime.length;j+=i) {
prime[j]=true;
}
}
System.out.println();
}
public static void main(String[] args) throws Exception {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
primeNum();//true는 소수가 아닌 수
for(int i=0;i<prime.length;i++) {
if(prime[i]) { //소수가 아닌 수
}
}
int TC = Integer.parseInt(br.readLine());
for (int tc = 1; tc <= TC; tc++) {
StringTokenizer st = new StringTokenizer(br.readLine()," ");
int A = Integer.parseInt(st.nextToken());
int B = Integer.parseInt(st.nextToken()); //확률
System.out.println("#"+tc + " ");
}// end of tc
}
}