4.1
计算糖果_牛客题霸_牛客网 (nowcoder)
import java.util.*;
public class Main {public static void main(String[] args){//处理输入Scanner sc=new Scanner(System.in);int a=sc.nextInt();//A-Bint b=sc.nextInt();//B-Cint c=sc.nextInt();//A+Bint d=sc.nextInt();//B+C//处理业务int A=(a+c)/2;int C=(d-b)/2;int B1=(b+d)/2;int B2=(c-a)/2;if(B1!=B2){System.out.println("No");}else{System.out.println(A+" "+B1+" "+C);}}
}
发布者:admin,转转请注明出处:http://www.yc00.com/news/1695258893a752053.html
评论列表(0条)