Home > Back-end >  Why do I answer to finish to wa
Why do I answer to finish to wa

Time:12-03

The Description
Do you play QQ speed? If not, it is a pity ~ ~
The feeling of the hurricane, the drift (drift),
But this is not want you to play, just want you to help me see, every game I can get a championship,
Every game must have from 2 to 6 people can play, if you are not a purple drill,
Input
Enter the first line is a T represents how many set of test data
Each set of test data of the first line is an integer n, on behalf of the several players the game
The next n lines, each line are three integers a: b: c
The first act my grades
The Output
For each set of input and output an integer, which is my place in the game (ranking),
Plastic variable overflow oh
After the program to modify
1 # include
2 int main ()
3 {
Int t;
5 the scanf (" % d ", & amp; T);
6 while (t -)
7 {
Int n, s=0, i1, I=0;
9 double sum [5], x, y, z;
10 the scanf (" % d ", & amp; N);
11 the if (n<2 | | n> 6)
12 {
13 t++;
14 the continue;
15}
16 for (; n!=0; N -)
17 {
Lf: lf: 18 the scanf (" % % % lf ", & amp; X, & amp; Y, & amp; Z);
19 the sum [I] + y=x * 100000 * 1000 + z;
20 i++;
21}
22 i1=I;
23 for (I=1; i<=i1; I++)
24 {
25 if (sum [0] & gt; The sum [I])
26 s +=1;
27}
Printf (" Sample Output \ n \ n % d ", s);
29}
30 return 0;
31}

CodePudding user response:

+ + + + + + + + + + + + test sample

CodePudding user response:

reference 1st floor Italink response:
+ + + + + + + + + + + + test sample

The Output
For each set of input and output an integer, which is my place in the game (ranking),
The Sample Input
1
3
2:02:12 3
2:03:00 0
2:02:12 4
The Sample Output
1

CodePudding user response:

If you are on test platform, the printf (" Sample Output \ n \ n % d ", s); Just need you to Output the value of the s line feed, you extra Output Sample Output, will result in system can't detect error, general test platform error is checking the Output string string is identical with the standard answer, on the other hand, don't know if you type a: b: what's the meaning of c, if there is wrong, whether considering the appear same ranking results

CodePudding user response:

The
reference 3 floor Italink response:
if you are on test platform, the printf (" Sample Output \ n \ n % d ", s); Just need you to Output the value of the s line feed, you extra Output Sample Output, will result in system can't detect error, general test platform error is checking the Output string string is identical with the standard answer, on the other hand, don't know if you type a: b: what's the meaning of c, if there is wrong, whether to consider a result same ranking

On the oj, changed or wa, but the answer is right, is there a limit as input the number of

CodePudding user response:

Small white first to learn how to let oneself understand questions to let others see

CodePudding user response:

 for (I=1; i<=i1; I++) 

To:
 for (I=1; i

CodePudding user response:

You this question? I test for the wa, uncomfortable, don't know what is the input overflow or something
  • Related