1 solutions

  • 1
    @ 2025-9-27 14:27:17
    #include<bits/stdc++.h>
    using namespace std;
    int main()
    {
    	int n=9;
    	int s1=0,s2=0;
    	for(int i=1;i<=n;i++)
    	{
    		int x;
    		cin>>x;
    		s1+=x;
    	}
    	for(int i=1;i<=n-1;i++)
    	{
    		int x;
    		cin>>x;
    		s2+=x;
    	}
    	int t=s1-s2;
    	if(t<0)
    	{
    		cout<<0;
    	}
    	else
    	{
    		cout<<t+1;
    	}
        return 0;
    }
    
    

    [ABC351A] 第九局下半(The bottom of the ninth)

    Information

    ID
    2345
    Time
    1000ms
    Memory
    256MiB
    Difficulty
    1
    Tags
    (None)
    # Submissions
    55
    Accepted
    31
    Uploaded By