一.编程题
题目1:
解题思路:
最后需要判断最终值是不是正确的:B1==B2?
public class Study {
public static void main(String[] args) {
Scanner scanner=new Scanner(System.in);
int a=scanner.nextInt();//A-B
int b=scanner.nextInt();//B-C
int c=scanner.nextInt();//A+B
int d=scanner.nextInt();//B+C
int A=(a+c)/2;//(A-B)+(A+B)
int B1=(b+d)/2;//(B-C)+(B+C)
int C=(d-b)/2;//(B+C)-(B