1098: 复合函数求值(函数专题)
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner cin = new Scanner(System.in);double x=cin.nextDouble();double Gx=x*x-3*x;double Fx=Math.abs(Gx-3)+Math.abs(Gx+1);System.out.printf("%.2f",Fx);}
}