Run ID Author Problem Lang Verdict Time Memory Code Length Submit Time
42373 老方 组合 C++ Wrong Answer 0 MS 252 KB 227 2024-02-26 10:01:00

Tests(0/1):


#include<bits/stdc++.h> using namespace std; int main(){ long long n,ns[1001],sum=1; cin>>n; for(int i=0;i<n;i++){ cin>>ns[i]; sum*=ns[i]; } for(int i=0;i<n;i++){ sum-=ns[i]; } cout<<sum; return 0; }


Judgement Protocol: