解题思路:
注意事项:
参考代码:
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); while (scanner.hasNext()) { int a = scanner.nextInt(); int []arr=new int[a-1]; int sum=0; for(int i=0;i<a-1;i++){ arr[i]=scanner.nextInt(); sum+=arr[i]; } int b=(a-2)*180; int c=b-sum; System.out.println(c); } } }
0.0分
1 人评分