Search found 35 matches

by C
Tue Apr 18, 2006 10:51 pm
Forum: Volume 109 (10900-10999)
Topic: 10998 - Flipping Colors
Replies: 15
Views: 3625

Once again

And for the problem 10964, I write following code and got WA, still however change input and output to java and got AC, and this time there's no such breaking condition. Maybe someone can also have a try and tell me the error ?? Thanks !

Code: Select all

Hided
by C
Tue Apr 18, 2006 10:41 pm
Forum: Volume 109 (10900-10999)
Topic: 10998 - Flipping Colors
Replies: 15
Views: 3625

I think you are saying problem 10998 , not 10988 , ok? I think this maybe can be the reason for TLE :wink: Else you can try this line to read the input while((scanf("%d %d %lf %lf",&h,&v,&dh,&dv)==4) && ((h!=0)||(v!=0)||(dh!=0)||(dv!=0))) It is 10998 and i have also changed the title and it isn't b...
by C
Tue Apr 18, 2006 10:37 pm
Forum: Volume 109 (10900-10999)
Topic: 10998 - Flipping Colors
Replies: 15
Views: 3625

Thank u !

I have tried your idea and also changed the type of h,v to double, and it is accepted . Really thank u! :wink:
by C
Mon Apr 17, 2006 5:47 pm
Forum: Volume 109 (10900-10999)
Topic: 10998 - Flipping Colors
Replies: 15
Views: 3625

10998 - Flipping Colors

I write following code to solve problem 10998, but i got "TL", and when I only change the input and output code to java code, and choose submit with java, it is accepted.Isn't it strange? Can anyone perhaps tell me what may be the error under C?? Because it is accepted, so i hide the code here 8)
by C
Mon Apr 17, 2006 1:11 pm
Forum: Volume 109 (10900-10999)
Topic: 10998 - Flipping Colors
Replies: 15
Views: 3625

C compiler

I write following code to solve problem 10998, but i got "TL", and when I only change the input and output code to java code, and choose submit with java, it is accepted.Isn't it strange? Can anyone perhaps tell me what may be the error under C??

Code: Select all

Hided

Go to advanced search