Search found 100 matches

by xenon
Tue Aug 06, 2002 9:48 am
Forum: Volume 100 (10000-10099)
Topic: 10034 - Freckles
Replies: 101
Views: 32400

10034 - Freckles

This looks like a basic application of Prim's algo, and that's how I treat it. But I keep getting WA. Can anybody point me to my mistake?

[pascal]program p10034(input,output);

{SPOILER DELETED}

[/pascal]

Thanks so much,
-xenon
by xenon
Sun Aug 04, 2002 12:37 pm
Forum: Volume 103 (10300-10399)
Topic: 10340 - All in All
Replies: 129
Views: 31834

Why open another tread for this problem? Runtime Errors give information about the kind of error that was encountered, so look at that information to solve the problem. In your case you probably got 'Illegal Memory Reference', or something like that, which means that the program tries to access memo...
by xenon
Sun Aug 04, 2002 12:27 pm
Forum: Volume 2 (200-299)
Topic: 271 - Simply Syntax
Replies: 46
Views: 12458

Every character from p..z is a correct sentence. This applies only to characters, not to strings made up of characters. So 'pq' and 'qp' are not correct sentences. So 'Cqpq' is one character too long.
by xenon
Wed Jul 31, 2002 2:58 pm
Forum: Other words
Topic: 10342 and 10342 is fixed now
Replies: 10
Views: 3695

So why are they submittable then? Shouldn't they have no checkmark, like many problems in volume 800 f.i.? People can waste a lot of time solving the insolvable this way. My submission for 10323 got accepted. Does this mean that I'll have to do it again after rejudgement (whenever that may be)? I ca...
by xenon
Wed Jul 31, 2002 11:49 am
Forum: Volume 103 (10300-10399)
Topic: 10338 - Mischievous Children
Replies: 56
Views: 20274

You can find the integer types for GNU-Pascal in the online Programmers Guide http://www.gnu-pascal.de/gpc_104.html#SEC104 . Especially look at paragraph 8.2.3.2 http://www.gnu-pascal.de/gpc_138.html#SEC138 The 64 bits signed integer type is 'LongInt', the unsigned type is 'LongCard'. I haven't look...
by xenon
Wed Jul 31, 2002 8:48 am
Forum: Volume 3 (300-399)
Topic: 346 - Getting Chorded
Replies: 19
Views: 4519

Thanks wyvmak, this solves a long standing WA for me...

(B# Fb G is a C Major chord.)
by xenon
Tue Jul 30, 2002 5:04 pm
Forum: Volume 101 (10100-10199)
Topic: 10179 - Irreducible Basic Fractions
Replies: 28
Views: 9753

same problem

I have the same problem, altough my code gets a WA, not a RTE. The following program works fine with 10299, but gets WA for 10179. [pascal]var prime:array[1..3410] of integer; function is_prime(i:integer):boolean; var p,j:integer; b:boolean; begin j:=1; p:=prime[1]; b:=true; while (p*p<=i) do begin ...
by xenon
Tue Jul 30, 2002 2:21 pm
Forum: Other words
Topic: more on user statistics
Replies: 24
Views: 9505

OK, I added the 'HTTP/1.0' to the GET request. Hope this works now. I also made two other improvements: - the colored checkmark is now shown on the stats page (actually it's a capital V, the HTTP committee left out ✓) in red, yellow, blue or green, with the same meaning as on the UVA host. - t...
by xenon
Tue Jul 30, 2002 1:14 pm
Forum: Volume 2 (200-299)
Topic: 264 - Count on Cantor
Replies: 47
Views: 13660

No, the sample output is right. The order in which the terms are counted is:

Code: Select all

 1   2   6   7  15
 3   5   8  14
 4   9  13
10 12
11
for the first 15 terms. It's a zig-zag!
by xenon
Mon Jul 29, 2002 11:36 pm
Forum: Volume 103 (10300-10399)
Topic: 10324 - Zeros and Ones
Replies: 179
Views: 43518

You can use longstrings too by specifying the length: [pascal]type longstring=string(1000000);[/pascal] The default is string(255), but I don't know if it's a standard pascal shortstring (i.e. with the length in byte 0). Since this is quite not-standard, most compilers will not know what to do with ...
by xenon
Fri Jul 19, 2002 3:07 pm
Forum: Other words
Topic: more on user statistics
Replies: 24
Views: 9505

AFAIK you shouldn't have to wait more then a few seconds, otherwise the program is stuck waiting for the page. Are you sure you have the latest version of my program (as uploaded yesterday)? I fixed a small bug to cope with some proxies, and as a side effect it performs twice as fast (if your intern...
by xenon
Fri Jul 19, 2002 12:05 pm
Forum: Volume 7 (700-799)
Topic: 727 - Equation
Replies: 156
Views: 34753

Multi input!
by xenon
Fri Jul 19, 2002 12:03 pm
Forum: Other words
Topic: The site was hacked
Replies: 3
Views: 2714

You're repeating yourself, wyvmak :lol:

There are more ways to f*ck *p the rankings (see 727, f.i). I personaly think those *ssh*l*s should be banned immediately.
by xenon
Thu Jul 18, 2002 11:06 pm
Forum: Other words
Topic: more on user statistics
Replies: 24
Views: 9505

Well Caesum, I'm glad it works now. 't Was the extra CRLF which, I guess, is part of the official HTTP standard :) Your proxy migh not be that transparent, but at least your connection is twice as fast as mine: it takes me 30 mins for a full scan. wyvmak: My code will never work under Linux, since i...
by xenon
Thu Jul 18, 2002 2:12 pm
Forum: Other words
Topic: more on user statistics
Replies: 24
Views: 9505

possible bug, new version

Thanks Adrian, at least it works sometimes... Caesum: I think I found a possible bug. As your quote indicates, a HTTP-request can be a multi-line package, so it needs a way to indicate the end of the request. Most probable this is done by adding an empty line. (I checked the junkbuster source code (...

Go to advanced search