Search found 100 matches

by xenon
Fri Sep 27, 2002 8:24 am
Forum: Other words
Topic: more on user statistics
Replies: 24
Views: 9493

The program doesn't work anymore since the layout of the problemstat pages is changed. Only the part that gets the general information still works.
As you can read in this thread, the guys on this site are working to provide the information, so we'll have to wait for that.
by xenon
Tue Sep 10, 2002 5:56 pm
Forum: Other words
Topic: New Features: Freepascal support
Replies: 3
Views: 2103

Sorry, I didn't read your post carefully enough before replying. You were sugesting using sed before compiling at the judge end; not for me to solve the problem.... (haste, haste, haste). I don't know if it would work in general, but I think so. Probably the best thing to do, is test it on a great n...
by xenon
Tue Sep 10, 2002 5:45 pm
Forum: Other words
Topic: New Features: Freepascal support
Replies: 3
Views: 2103

I can't check it from here, I'm at my work right now, but as I remember the GPC standard is/was to use round braces for strings-dimensions, and square braces for everything else. Because I always used Freepascal myself, I had to include compiler directives to take care of the round braces. It's not ...
by xenon
Tue Sep 10, 2002 7:37 am
Forum: Other words
Topic: New Features: Freepascal support
Replies: 3
Views: 2103

New Features: Freepascal support

GPC has been replaced by FreePascal 1.0.6 Everything should run without changing anything in your source codes. Rejudgments - if any - will use FreePascal but nothing strange should happen. Well, I'm in big trouble now because of the difference in the way strings are defined between GPC and Freepas...
by xenon
Thu Sep 05, 2002 7:43 am
Forum: Volume 101 (10100-10199)
Topic: 10103 - Karpovich blocks
Replies: 21
Views: 8342

Thank you for your answer! So let me sum up to see if I understand the question now: - After the glueing there are exactly three details, one R, one G and one B. The unitblocks of which they are made of are all interconnected and every kind is present. - The order in which the details come lose is i...
by xenon
Thu Aug 29, 2002 8:37 pm
Forum: Volume 4 (400-499)
Topic: 474 - Heads / Tails Probability
Replies: 50
Views: 10812

There is a lot of discussion on the regular board for this problem, and I remember I solved it (in Pascal) after carefull study of what was said there. As always with computations using real variables, the crux lies in avoiding rounding errors. The case n=6 in particular can be used to augment your ...
by xenon
Sat Aug 24, 2002 7:38 am
Forum: Other words
Topic: more on user statistics
Replies: 24
Views: 9493

Fernando, I'm very pleased to hear that you are working on providing more user statistics, because I think there is a nead for it. The reason for me to write the program was, besides the fun of writing it of course, that I missed the information it collects. I have no idea of how much it is used by ...
by xenon
Sat Aug 17, 2002 7:28 am
Forum: Volume 100 (10000-10099)
Topic: 10034 - Freckles
Replies: 101
Views: 32330

Thanks even, now I also get PE by adding just one writeln statement!
This is really stupid. The judges should look into it.
by xenon
Sat Aug 10, 2002 2:52 pm
Forum: Volume 4 (400-499)
Topic: 401 - Palindromes
Replies: 196
Views: 31063

Some remarks: 1. Use Pascal button to format your code. This makes it much more readable. 2. Your program compiles perfectly with my free pascal compiler, but according to the standard, when using labels within a procedure, first declare the variables, then declare the labels. Like this: [pascal]pro...
by xenon
Sat Aug 10, 2002 2:23 pm
Forum: Volume 102 (10200-10299)
Topic: 10239 - The Book-shelver's Problem
Replies: 14
Views: 4976

Well, I think it's a great problem, but I can't get past the WA stage. I think I avoid the rounding problem sufficiently, so something else must be wrong. Can you help me? [pascal]var books:integer; width,height,best:array[1..1001] of longint; shelfwidth:longint; temp:double; i,j,k,l:integer; w,h:lo...
by xenon
Fri Aug 09, 2002 11:53 pm
Forum: Volume 101 (10100-10199)
Topic: 10195 - The Knights Of The Round Table
Replies: 59
Views: 15720

That might be, and I take your word for it. I was tired of guessing, so I didn't verify that if one of a,b,c is zero then they all are zero. My solution also solves the 'general case' where the triangle (x,x,0.0) is really a line of length x. In that case the table is a circle with radius x/2. But h...
by xenon
Fri Aug 09, 2002 10:26 pm
Forum: Volume 101 (10100-10199)
Topic: 10195 - The Knights Of The Round Table
Replies: 59
Views: 15720

Since I don't believe programming should be a guessing game (I fully agree with Stefan's objections above) and I did my portion of guessing on this problem, I'll take away the dirtyness by publishing the part of my code that deals with it: [pascal]program p10195(input,output); var a,b,c,r:double; be...
by xenon
Fri Aug 09, 2002 4:14 pm
Forum: Other words
Topic: Dijkstra is dead
Replies: 1
Views: 1945

Dijkstra is dead

Three days ago E.W. Dijkstra died. Most of us here know him for his method for solving shortest routes through graphs (that's how I heard from him, by solving problems here), but he was one of the world famous computer pioneers. I took the liberty to translate an obituary from the Dutch newspaper NR...
by xenon
Fri Aug 09, 2002 8:50 am
Forum: Volume 8 (800-899)
Topic: 839 - Not so Mobile
Replies: 21
Views: 8162

Read the complete input, even if you know there is an error at an early stage. Your function mobile() returns if it encounters an error in the left branch and leaves the right branch unread.
by xenon
Tue Aug 06, 2002 10:49 am
Forum: Volume 100 (10000-10099)
Topic: 10034 - Freckles
Replies: 101
Views: 32330

Does 'Priority cue' mean sorting the distances first? I can see that that would improve the speed, but not the outcome. I don't think speed is a factor here, because my program WA's in 0.000 seconds.
Something else must be wrong. Could rounding be an issue?

Go to advanced search