Home > Back-end >  Ccf19 years in September for the first topic xiaoming kind of apple, want to ask where the program i
Ccf19 years in September for the first topic xiaoming kind of apple, want to ask where the program i

Time:11-30

 # include 
#include
# define NUM 1000
Int turns NUM (NUM), s (NUM);
using namespace std;
Int main () {
Int I, j, N, M;
Cin> N;
Cin> M;
Int sum=0, t=1, maxi=0, su=0;
for(i=0; ifor(j=0; JCin> Turns up [I] [j];
for(i=0; isum=0;
for(j=1; JSum=sum + turns up [I] [j];
}
S [I]=abs (a sum);
If (s [I] & gt; Maxi)
{
Maxi=s [I];
T=I + 1;
}
}
for(i=0; iSu=su + turns up [I] [0] - [I] s;
Coutreturn 0;
}

CodePudding user response:

Probably because you didn't do input validation, input data outside expectations, will go wrong, you define the largest 1000 array of cin is less than 1 and greater than 1000 do not check

CodePudding user response:

CCF platform is what brush

CodePudding user response:

reference 1st floor gouyanfen response:
probably because you didn't do input validation, data input beyond expectations, will go wrong, you define the largest 1000 array of cin is less than 1 and greater than 1000 to do check

The input validity checking how to do

CodePudding user response:

refer to the second floor wowpH response:
CCF what brush is topic platform

Is not a certification exam

CodePudding user response:

The administrator, I how to infuse water? Squat down a solution also not line?
And I know that the last two test sample n, m values can be 1000, so to put an array to define the outside, or simply don't have to input array
  • Related