From 90588aca0ceb46717c6588a607414b0496e52a8a Mon Sep 17 00:00:00 2001 From: oncsr Date: Wed, 19 Mar 2025 16:52:37 +0900 Subject: [PATCH 1/2] =?UTF-8?q?[20250319]=20BOJ=20/=20G4=20/=20FreeCell=20?= =?UTF-8?q?/=20=EA=B6=8C=ED=98=81=EC=A4=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- khj20006/202503/19 BOJ G4 FreeCell.md | 1 + 1 file changed, 1 insertion(+) create mode 100644 khj20006/202503/19 BOJ G4 FreeCell.md diff --git a/khj20006/202503/19 BOJ G4 FreeCell.md b/khj20006/202503/19 BOJ G4 FreeCell.md new file mode 100644 index 00000000..8b137891 --- /dev/null +++ b/khj20006/202503/19 BOJ G4 FreeCell.md @@ -0,0 +1 @@ + From 30a80fa8e289fc224cb6a7fa6099f48187e4d4bb Mon Sep 17 00:00:00 2001 From: oncsr Date: Wed, 19 Mar 2025 16:55:08 +0900 Subject: [PATCH 2/2] Update 19 BOJ G4 FreeCell.md --- khj20006/202503/19 BOJ G4 FreeCell.md | 52 +++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) diff --git a/khj20006/202503/19 BOJ G4 FreeCell.md b/khj20006/202503/19 BOJ G4 FreeCell.md index 8b137891..52947a0b 100644 --- a/khj20006/202503/19 BOJ G4 FreeCell.md +++ b/khj20006/202503/19 BOJ G4 FreeCell.md @@ -1 +1,53 @@ +```java +import java.util.*; +import java.io.*; + +class Main { + + // IO field + static BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); + static BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out)); + static StringTokenizer st = new StringTokenizer(""); + + static void nextLine() throws Exception {st = new StringTokenizer(br.readLine());} + static String nextToken() throws Exception { + if(!st.hasMoreTokens()) nextLine(); + return st.nextToken(); + } + static int nextInt() throws Exception { return Integer.parseInt(nextToken()); } + static long nextLong() throws Exception { return Long.parseLong(nextToken()); } + static double nextDouble() throws Exception { return Double.parseDouble(nextToken()); } + static void bwEnd() throws Exception {bw.flush();bw.close();} + + // Additional field + + static int N, M, K; + + public static void main(String[] args) throws Exception { + + ready(); + solve(); + + bwEnd(); + + } + + static void ready() throws Exception{ + + N = nextInt(); + M = nextInt(); + K = nextInt(); + + } + + static void solve() throws Exception{ + + boolean ans = (1<= K; + bw.write(ans ? "yes" : "no"); + + } + +} + +```