ZZULIOJ 1002-简单多项式求值,Java

1002: 简单多项式求值

import java.util.*;
public class Main {
    public static void main(String[] args) {
        Scanner cin = new Scanner(System.in);
        int a=cin.nextInt();
        System.out.println(2*a*a+a+8);
    }
}

你可能感兴趣的:(#,Java刷题)