Search found 4 matches

by shaform
Thu Oct 12, 2006 2:35 pm
Forum: Volume 1 (100-199)
Topic: 110 - Meta-Loopless Sorts
Replies: 92
Views: 8472

110 Meta-Loopless Sorts WA! (solved)

10/13 Updated: Well...... My program prints " writeln(a,b,c); ", and it should be " writeln(a,b,c) ". Why didn't I find it? ----------------------------------------------------- There must be some stupid mistakes in my code, but I can't find it. Can anyone tell me what's wrong with my code? Thanks f...
by shaform
Sat Aug 12, 2006 6:07 am
Forum: Volume 1 (100-199)
Topic: 102 - Ecological Bin Packing
Replies: 485
Views: 54600

Your program prints an unnecessary line when End-Of-File is reached.
( cin.eof() returns true if the eofbit stream's error flag has been set by a previous i/o operation. )
Why not just write something like this:

Code: Select all

z = 0;
while(cin >> x[z]) {
	if(++z<9) continue;
by shaform
Fri Aug 11, 2006 8:09 am
Forum: Volume 1 (100-199)
Topic: 105 - The Skyline Problem
Replies: 160
Views: 29631

I think you are right.
Anyway, I finally got Accept.
Thanks.
by shaform
Tue Aug 08, 2006 2:14 pm
Forum: Volume 1 (100-199)
Topic: 105 - The Skyline Problem
Replies: 160
Views: 29631

[Solved]105 The Skyline Problem: Runtime Error

I've tested my codes many times. I even used some input files with random numbers, and I didn't find any problems. But after I submited it, I got RE. It said : Invalid memory reference Well, I know there are some easier ways to solve The Skyline Problem, but I just want to know why this code couldn'...

Go to advanced search