# 문제https://www.acmicpc.net/problem/2869# 코드import java.io.BufferedReader;import java.io.IOException;import java.io.InputStreamReader;public class BOJ2869_v2 { public static void main(String[] ags) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String[] input = br.readLine().split(" "); int A = Integer.parseInt(input[0]); // 낮 up int B..