📖 문제 📃 코드 import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.StringTokenizer; public class Main { static long sum(long A, long B) { long result = (A + B) * ((B - A + 1) / 2); System.out.println((B - A + 1) / 2); // if numbers are odd if ((B - A + 1) % 2 != 0) { result += (A + B) / 2; } return result; } public static void main(String[] ar..