From 23e049597a0498f2cb7311fdbdad44f3372aff32 Mon Sep 17 00:00:00 2001 From: oncsr Date: Mon, 17 Mar 2025 17:45:03 +0900 Subject: [PATCH] =?UTF-8?q?[20250317]=20BOJ=20/=20G1=20/=20=ED=8C=90?= =?UTF-8?q?=EB=93=9C=EB=9E=84=EC=B6=94=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 --- ...20\353\223\234\353\236\204\354\266\224.md" | 69 +++++++++++++++++++ 1 file changed, 69 insertions(+) create mode 100644 "khj20006/202503/17 BOJ G1 \355\214\220\353\223\234\353\236\204\354\266\224.md" diff --git "a/khj20006/202503/17 BOJ G1 \355\214\220\353\223\234\353\236\204\354\266\224.md" "b/khj20006/202503/17 BOJ G1 \355\214\220\353\223\234\353\236\204\354\266\224.md" new file mode 100644 index 00000000..5ebb24fe --- /dev/null +++ "b/khj20006/202503/17 BOJ G1 \355\214\220\353\223\234\353\236\204\354\266\224.md" @@ -0,0 +1,69 @@ +```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 int nextInt() throws Exception { + if(!st.hasMoreTokens()) nextLine(); + return Integer.parseInt(st.nextToken()); + } + static long nextLong() throws Exception { + if(!st.hasMoreTokens()) nextLine(); + return Long.parseLong(st.nextToken()); + } + static void bwEnd() throws Exception {bw.flush();bw.close();} + + // Additional field + + static int a, b; + + public static void main(String[] args) throws Exception { + + for(int T=nextInt();T-->0;) { + + ready(); + solve(); + } + + bwEnd(); + + } + + static void ready() throws Exception{ + + a = nextInt(); + b = nextInt(); + + + } + + static void solve() throws Exception{ + + + char g = 'A'; + if(a 0 && (half&a) == half) bw.write("1\n" + g + " " + half + "\n"); + else bw.write("2\n" + g + " " + half + "\n" + g + " " + half + "\n"); + } + + } + +} + +```