Skip to content

Commit 30a80fa

Browse files
authored
Update 19 BOJ G4 FreeCell.md
1 parent 90588ac commit 30a80fa

File tree

1 file changed

+52
-0
lines changed

1 file changed

+52
-0
lines changed
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,53 @@
1+
```java
12

3+
import java.util.*;
4+
import java.io.*;
5+
6+
class Main {
7+
8+
// IO field
9+
static BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
10+
static BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out));
11+
static StringTokenizer st = new StringTokenizer("");
12+
13+
static void nextLine() throws Exception {st = new StringTokenizer(br.readLine());}
14+
static String nextToken() throws Exception {
15+
if(!st.hasMoreTokens()) nextLine();
16+
return st.nextToken();
17+
}
18+
static int nextInt() throws Exception { return Integer.parseInt(nextToken()); }
19+
static long nextLong() throws Exception { return Long.parseLong(nextToken()); }
20+
static double nextDouble() throws Exception { return Double.parseDouble(nextToken()); }
21+
static void bwEnd() throws Exception {bw.flush();bw.close();}
22+
23+
// Additional field
24+
25+
static int N, M, K;
26+
27+
public static void main(String[] args) throws Exception {
28+
29+
ready();
30+
solve();
31+
32+
bwEnd();
33+
34+
}
35+
36+
static void ready() throws Exception{
37+
38+
N = nextInt();
39+
M = nextInt();
40+
K = nextInt();
41+
42+
}
43+
44+
static void solve() throws Exception{
45+
46+
boolean ans = (1<<M)*(N+1) >= K;
47+
bw.write(ans ? "yes" : "no");
48+
49+
}
50+
51+
}
52+
53+
```

0 commit comments

Comments
 (0)