## Search found 150 matches

Tue Aug 27, 2013 11:15 am
Forum: Volume 3 (300-399)
Topic: 364 - Constitutional Computing
Replies: 13
Views: 2930

### Re: 364 - Constitutional Computing

Never mind. Found my mistake in the output section. Both, your and my version, for Hamilton is OK. Equal fractions issue doesn't seem to occur. Just for the info I'll underline the correct answer for my question. And regarding output. When choosing which methods a state is favored by, should only th...
Tue Aug 27, 2013 10:43 am
Forum: Volume 3 (300-399)
Topic: 364 - Constitutional Computing
Replies: 13
Views: 2930

### Re: 364 - Constitutional Computing

Tried it your way for Hamilton, even used long longs. Still doesn't work. I'll try to find the mistakes without sending the code for the moment, though. If I'll be ready to give up on it, then. Then use fractions in descending order to add 1 to rep until all extra representatives are distributed. Do...
Mon Aug 26, 2013 2:58 pm
Forum: Volume 3 (300-399)
Topic: 364 - Constitutional Computing
Replies: 13
Views: 2930

### Re: 364 - Constitutional Computing

The total is 3,295 so for 49 representatives, we divide by 67.24 for the true apportionment of representatives. In the Hamilton method, the left overs go to Arizo, Idaho, Calif, and Color. I divide by 63.20 for the Jefferson method. I divide by 72.60 for the Adams method. I divide by 67.50 for the ...
Fri Dec 21, 2012 9:43 pm
Forum: Volume 3 (300-399)
Topic: 364 - Constitutional Computing
Replies: 13
Views: 2930

### Re: 364 - Constitutional Computing

You mean match for that particular case only? And I agree, I can't figure out the logic behind that output. As far as I can see it, that output seems kind of an impossibility. Anyway, hopefully the test set will get switched and problem rejudged. I don't know how long it even takes Carlos (is he sti...
Fri Dec 21, 2012 2:58 pm
Forum: Volume 3 (300-399)
Topic: 364 - Constitutional Computing
Replies: 13
Views: 2930

### Re: 364 - Constitutional Computing

brianfry713 wrote:Yes the sample output is wrong. This problem does not have a correct dataset.
Can you elaborate on how you got it accepted? What should be interpreted differently to what is stated in the problem description?

I.
Sat Mar 05, 2005 12:59 am
Forum: Volume 103 (10300-10399)
Topic: 10324 - Zeros and Ones
Replies: 179
Views: 42712
Without assembler, in pure C, with serious IO and data representation optimizations. No more than that. (And I won't tell what exactly.) It took me a while to come to this solution. I picked this problem up not so long ago after not touching it for at least 1.5 years. Before that my time was about 0...
Tue Oct 26, 2004 8:55 pm
Forum: Off topic (General chit-chat)
Topic: Number of submissions
Replies: 10
Views: 3443
I miss the times too. It was so fun to compete for being better than others. Many of the programs are still there to be taken up again Hope I can manage someday soon enough. Till that, see you on occasions in between.

I.
Fri Oct 22, 2004 8:59 pm
Forum: Volume 6 (600-699)
Topic: 640 - Self Numbers
Replies: 47
Views: 17883
It isn't possible to solve this in 0.000 at all. The time I have is the result of the glitch in the system some two years ago. Else I would have time around 0.010-0.020. That is a possible time. With good IO and a trick to generation of the numbers.

Cheers,
Ivor
Fri Oct 22, 2004 8:56 pm
Forum: Off topic (General chit-chat)
Topic: Number of submissions
Replies: 10
Views: 3443
Heh. :) Cool guys you still remember me. :) Very pleased to see that. I've been pretty busy for the last year or so. Studies take their fair amount of time and now work too so I don't have anything to spare for at least one more term. I drop in from time to time to see how things are going though. I...
Sun Jul 18, 2004 2:45 pm
Forum: Volume 100 (10000-10099)
Topic: 10040 - Ouroboros Snake
Replies: 20
Views: 4338
The first three times -- 0.000 and 0.002 are probably nothing more than simple io solutions, ie one of them told me he had io somewhere and sent it. I think there might be a really easy solution to this problem but I didn't find one. The solution I have is DeBrujn cycles algorithm. Wish I could reme...
Wed Jan 28, 2004 3:12 pm
Forum: C++
Topic: a[++y]=a[y]+1;
Replies: 15
Views: 4791

### Re: a[++y]=a[y]+1;

a[++y]=a[y]+1; Say y = 1. ++y => y = 2 and your code becomes: a[2] = a[2] + 1 y++; a[y]=a[y-1]+1; Same starting point, say y = 1. y++ => y = 2; and assignment becomes: a[2] = a[2 - 1] + 1, ie a[2] = a[1] + 1. That's the difference. I haven't tested it but it is the way I have always understood C co...
Wed Jan 07, 2004 10:54 pm
Forum: Other words
Topic: Are we going insane?
Replies: 12
Views: 4329
It has been some time since I really enjoyed some insane solving and search for better algorithms. As Carlos said 495 is one of the most interesting problems and the battle with Scott and Ivan is the one I enojoyed very much. So, 623 has actually become a lot more interesting problem from the solvin...
Wed Dec 24, 2003 12:33 pm
Forum: Volume 101 (10100-10199)
Topic: 10194 - Football (aka Soccer)
Replies: 119
Views: 36163
Or then again it doesn't matter... I sent the other version with shorter words first and it was accepted too. Hmm... I wonder what it was I messed up in my first solution.

Anyway, sorry for keeping up a conversation with myself,
Ivor
Wed Dec 24, 2003 12:27 pm
Forum: Volume 101 (10100-10199)
Topic: 10194 - Football (aka Soccer)
Replies: 119
Views: 36163
1) aab 0p, 0g (0-0-0), 0gd (0-0) 2) Aac 0p, 0g (0-0-0), 0gd (0-0) 3) aA 0p, 0g (0-0-0), 0gd (0-0) 4) aa 0p, 0g (0-0-0), 0gd (0-0) 5) BBa 0p, 0g (0-0-0), 0gd (0-0) 6) bbc 0p, 0g (0-0-0), 0gd (0-0) 7) Bb 0p, 0g (0-0-0), 0gd (0-0) 8) bb 0p, 0g (0-0-0), 0gd (0-0) Anyone bothers to explain how come this...
Tue Dec 23, 2003 8:30 pm
Forum: Volume 101 (10100-10199)
Topic: 10197 - Learning Portuguese
Replies: 45
Views: 15538
Thought I just might drop this one. A word can consist of only a valid suffix, ie length of the root of the word is 0. I assumed otherwise, so got a bit of nasty testing.

Ivor