Search found 4 matches

by 300pounddog
Thu Oct 24, 2013 1:21 am
Forum: Volume 101 (10100-10199)
Topic: 10131 - Is Bigger Smarter?
Replies: 93
Views: 64225

Re: 10131 - Is Bigger Smarter?

Do you think you can explain to me why return left.weight > right.weight; is the only way to go for my code? Thanks #include <cstdio> #include <vector> #include <stack> #include <iostream> #include <algorithm> using namespace std; struct elephant{ int id; int weight; int iq; }; int cnt; vector<eleph...
by 300pounddog
Wed Oct 23, 2013 11:50 am
Forum: Volume 101 (10100-10199)
Topic: 10131 - Is Bigger Smarter?
Replies: 93
Views: 64225

Re: 10131 - Is Bigger Smarter?

Similar to most of your implementations, I sorted the input based in decreasing IQs. However, I can't figure out why in the event that there is a tie in IQ, the larger weight value should take precedence. My initial thoughts were that it probably didn't matter. So after I got my AC i started tinkeri...
by 300pounddog
Wed Oct 23, 2013 1:18 am
Forum: Volume 11 (1100-1199)
Topic: 1196 - Tiling Up Blocks
Replies: 10
Views: 3993

Re: 1196 - Tiling Up Blocks WA

brianfry713 wrote:Try a case where n = 1.
Oh silly me. Thanks a ton. ACed immediately!
by 300pounddog
Tue Oct 22, 2013 3:29 pm
Forum: Volume 11 (1100-1199)
Topic: 1196 - Tiling Up Blocks
Replies: 10
Views: 3993

1196 - Tiling Up Blocks

Hi there. I can't seem to find out whats causing the WA with my code. Help please? :) Also, any tips on troubleshooting effectively? I think I am weak in thinking of the corner cases... Thanks a lot. #include <cstdio> #include <iostream> #include <vector> #include <algorithm> using namespace std; in...

Go to advanced search