【求助】一道机构OJ题目
查看原帖
【求助】一道机构OJ题目
258979
花开一心相惜楼主2021/1/25 20:17

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

不知道哪里错了,望大佬解答

2021/1/25 20:17
加载中...