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 ...
Search found 150 matches
- Tue Aug 27, 2013 11:15 am
- Forum: Volume 3 (300-399)
- Topic: 364 - Constitutional Computing
- Replies: 13
- Views: 4262
- Tue Aug 27, 2013 10:43 am
- Forum: Volume 3 (300-399)
- Topic: 364 - Constitutional Computing
- Replies: 13
- Views: 4262
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 ...
Then use fractions in descending order to add 1 to rep until all extra representatives are distributed ...
- Mon Aug 26, 2013 2:58 pm
- Forum: Volume 3 (300-399)
- Topic: 364 - Constitutional Computing
- Replies: 13
- Views: 4262
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: 4262
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 ...
- Fri Dec 21, 2012 2:58 pm
- Forum: Volume 3 (300-399)
- Topic: 364 - Constitutional Computing
- Replies: 13
- Views: 4262
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: 66996
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: 4600
- Fri Oct 22, 2004 8:59 pm
- Forum: Volume 6 (600-699)
- Topic: 640 - Self Numbers
- Replies: 47
- Views: 25869
- Fri Oct 22, 2004 8:56 pm
- Forum: Off topic (General chit-chat)
- Topic: Number of submissions
- Replies: 10
- Views: 4600
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 ...
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 ...
- Sun Jul 18, 2004 2:45 pm
- Forum: Volume 100 (10000-10099)
- Topic: 10040 - Ouroboros Snake
- Replies: 20
- Views: 6786
- Wed Jan 28, 2004 3:12 pm
- Forum: C++
- Topic: a[++y]=a[y]+1;
- Replies: 15
- Views: 6287
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 ...
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 ...
- Wed Jan 07, 2004 10:54 pm
- Forum: Other words
- Topic: Are we going insane?
- Replies: 12
- Views: 6353
- Wed Dec 24, 2003 12:33 pm
- Forum: Volume 101 (10100-10199)
- Topic: 10194 - Football (aka Soccer)
- Replies: 121
- Views: 64086
- Wed Dec 24, 2003 12:27 pm
- Forum: Volume 101 (10100-10199)
- Topic: 10194 - Football (aka Soccer)
- Replies: 121
- Views: 64086
- Tue Dec 23, 2003 8:30 pm
- Forum: Volume 101 (10100-10199)
- Topic: 10197 - Learning Portuguese
- Replies: 45
- Views: 22817