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<