1 solutions

  • 1
    @ 2024-12-11 13:52:46
    #include <bits/stdc++.h>
    using namespace std;
    int n;
    int a;
    int ans;
    int main()
    {
    	cin >> n;
    	ans = (n-2)*180;
    	for(int i = 1; i <= n-1; i++)
    	{
    		cin >> a;
    		ans-=a;
    	}
    	cout << ans;
    	
    	
    	return 0;
    }
    
    • 1

    Information

    ID
    80
    Time
    1000ms
    Memory
    64MiB
    Difficulty
    10
    Tags
    # Submissions
    2
    Accepted
    1
    Uploaded By