4 solutions

  • 0
    @ 2026-4-13 21:11:21

    #include<bits/stdc++.h> using namespace std; int main() { int a,b,c,d,e,f,g,h,i; cin>>a>>b>>c>>d>>e>>f>>g>>h>>i; int j,k,l,m,n,o,p,q; cin>>j>>k>>l>>m>>n>>o>>p>>q; int z=a+b+c+d+e+f+g+h+i; int x=j+k+l+m+n+o+p+q; if(z<x) { cout<<"0"; } else if(z==x) { cout<<"1"; } else if(z>x) { int m=z-x+1; cout<<m; } return 0; }

    Information

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