Search found 150 matches
- Tue Aug 27, 2013 11:15 am
- Forum: Volume 3 (300-399)
- Topic: 364 - Constitutional Computing
- Replies: 13
- Views: 3201
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: 3201
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: 3201
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: 3201
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: 3201
Re: 364 - Constitutional Computing
Can you elaborate on how you got it accepted? What should be interpreted differently to what is stated in the problem description?brianfry713 wrote:Yes the sample output is wrong. This problem does not have a correct dataset.
I.
- Sat Mar 05, 2005 12:59 am
- Forum: Volume 103 (10300-10399)
- Topic: 10324 - Zeros and Ones
- Replies: 179
- Views: 48040
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: 3718
- Fri Oct 22, 2004 8:59 pm
- Forum: Volume 6 (600-699)
- Topic: 640 - Self Numbers
- Replies: 47
- Views: 19189
- Fri Oct 22, 2004 8:56 pm
- Forum: Off topic (General chit-chat)
- Topic: Number of submissions
- Replies: 10
- Views: 3718
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: 4938
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: 5172
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: 4816
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: 120
- Views: 41974
- Wed Dec 24, 2003 12:27 pm
- Forum: Volume 101 (10100-10199)
- Topic: 10194 - Football (aka Soccer)
- Replies: 120
- Views: 41974
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: 16654