From d6fcd71a702b1cc8e3537db2e00ca230cf4bd692 Mon Sep 17 00:00:00 2001 From: oncsr Date: Thu, 20 Feb 2025 14:05:32 +0900 Subject: [PATCH] =?UTF-8?q?[20250220]=20SWEA=20/=20D4=20/=20=EB=8F=99?= =?UTF-8?q?=EC=95=84=EB=A6=AC=EC=8B=A4=20=EA=B4=80=EB=A6=AC=ED=95=98?= =?UTF-8?q?=EA=B8=B0=20/=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 --- ...00\353\246\254\355\225\230\352\270\260.md" | 89 +++++++++++++++++++ 1 file changed, 89 insertions(+) create mode 100644 "khj20006/202502/20 SWEA D4 \353\217\231\354\225\204\353\246\254\354\213\244 \352\264\200\353\246\254\355\225\230\352\270\260.md" diff --git "a/khj20006/202502/20 SWEA D4 \353\217\231\354\225\204\353\246\254\354\213\244 \352\264\200\353\246\254\355\225\230\352\270\260.md" "b/khj20006/202502/20 SWEA D4 \353\217\231\354\225\204\353\246\254\354\213\244 \352\264\200\353\246\254\355\225\230\352\270\260.md" new file mode 100644 index 00000000..1285bc95 --- /dev/null +++ "b/khj20006/202502/20 SWEA D4 \353\217\231\354\225\204\353\246\254\354\213\244 \352\264\200\353\246\254\355\225\230\352\270\260.md" @@ -0,0 +1,89 @@ +```java + +import java.util.*; +import java.io.*; + + +class Solution { + + // IO field + static BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); + static BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out)); + static StringTokenizer st; + + static void nextLine() throws Exception {st = new StringTokenizer(br.readLine());} + static int nextInt() {return Integer.parseInt(st.nextToken());} + static long nextLong() {return Long.parseLong(st.nextToken());} + static void bwEnd() throws Exception {bw.flush();bw.close();} + + // Additional field + static int[] A; + static int[] dp; + static int N; + static final int mod = (int)1e9 + 7; + + public static void main(String[] args) throws Exception { + + int TC; + TC = Integer.parseInt(br.readLine()); + ready(TC); + + bwEnd(); + + } + + static void ready(int TC) throws Exception{ + + for(int tc=1;tc<=TC;tc++) { + + // Write Code + + char[] temp = br.readLine().toCharArray(); + N = temp.length; + A = new int[N+1]; + for(int i=1;i<=N;i++) A[i] = temp[i-1]-'A'; + dp = new int[16]; + + // + + solve(tc); + + } + + } + + static void solve(int tc) throws Exception{ + + // Solve part + for(int x=0;x<16;x++) if((x&1) != 0 && (x&(1<