RT
题目大意here
我的代码:
#include<iostream>
using namespace std;
int main()
{
int a;
cin>>a;
int aanother=(a-2)*180;
for(int i=0;i<a;i++)
{
int z;
cin>>z;
aanother-=z;
z=0;
}
cout<<aanother<<endl;
return 0;
}
可以过机构OJ的样例
输入样例 1
3
45 60
输出样例 1
75
输入样例 2
10
120 175 160 130 125 139 165 167 134
输出样例 2
125
不知道哪里错了,望大佬解答