Search found 8 matches

by Olorin
Fri Nov 22, 2002 4:02 pm
Forum: Volume 1 (100-199)
Topic: 118 - Mutant Flatworld Explorers
Replies: 68
Views: 20424

JTK1996,
Thanks, I will try your suggestion.
The third bot in the sample case, I believe, could work both ways... that might be what tricked me :-)
While, getting it wrong, as apparently I did, would give the wrong answer in a croner, for instance...

Thanks again: good thinking !
by Olorin
Wed Nov 20, 2002 5:01 am
Forum: Volume 1 (100-199)
Topic: 118 - Mutant Flatworld Explorers
Replies: 68
Views: 20424

P 118, WA and no clue as to why

Heck, I don't see what's wrong with it:
If you see something wrong, let me know, please.
Thanks in advance.

[cpp]
//^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
// Problem 105: "Mutant Flatworld Explorers"
// Submission by Frank "Olorin" Rizzi ...
by Olorin
Wed Nov 20, 2002 4:57 am
Forum: Volume 1 (100-199)
Topic: 119 - Greedy Gift Givers
Replies: 145
Views: 47241

Supermin: my dumb $0.02:
I think for a while.....but I still can't figure out how to do the "blank line" except the last group..
Put a blank line before every group except the first?

Just a hint, HTH
by Olorin
Wed Nov 06, 2002 3:29 pm
Forum: Volume 1 (100-199)
Topic: 105 - The Skyline Problem
Replies: 160
Views: 51260

Thanks, Fresh.
Someone else actually suggested that the code as it is now should work great for submission to the Online Judge. So, I'll try it as-is.

Thanks anyway!
by Olorin
Wed Nov 06, 2002 3:28 pm
Forum: Volume 1 (100-199)
Topic: 105 - The Skyline Problem
Replies: 160
Views: 51260

Thanks EZE, and Zorba. I'll try to submit it as-is and come up with a testing scheme using files or sentinel values.
by Olorin
Wed Nov 06, 2002 5:08 am
Forum: Volume 1 (100-199)
Topic: 105 - The Skyline Problem
Replies: 160
Views: 51260

Detecting end of file...ehr...of stream (sigh)

Well, I did post this in the Volume I forum, but maybe it is more appropriate here in C++. ANyhow, the question makes explicit reference to P105, but disregard that, since it is really a generic problem I'm having because the inputs here come from cin rather than a filestream ...
by Olorin
Wed Nov 06, 2002 2:38 am
Forum: Volume 1 (100-199)
Topic: 105 - The Skyline Problem
Replies: 160
Views: 51260

p105 (and others): C++ detect end of file..argh..of stream ?

So, p 105 is an example, but not the only one.
In many problems we have to read input until the end of the stream. Now, if this was a file (for ex named infile), we could have loops that check on infile.fail, or loops while(infile) (depending).
Since this is cin, not a filestream, how do you keep on ...
by Olorin
Sun Nov 03, 2002 3:45 pm
Forum: Volume 1 (100-199)
Topic: 101 - The Blocks Problem
Replies: 635
Views: 108585

P101: Memory Limit Exceeded ?

Well, I'll say !
Hate to post a solution that is nothing special, but I am getting the "Memory Limit Exceeded" reply form the judge, and I sure am wondering where the leak might come from. So, please take a look and let me know what you think. Thanks in advance (sorry if the indentation looks bad ...

Go to advanced search