tag:blogger.com,1999:blog-5724099066106449846.post3662664869679188765..comments2023-12-31T02:09:31.149-05:00Comments on Madking's Musings: Programming Contests and LanguagesMichael Haddox-Schatzhttp://www.blogger.com/profile/02782657000665338948noreply@blogger.comBlogger4125tag:blogger.com,1999:blog-5724099066106449846.post-69757536698306110592011-07-14T22:51:30.509-04:002011-07-14T22:51:30.509-04:00I used to have a similar Java library string parsi...I used to have a similar Java library string parsing for TopCoder, but scrapped it when TC added their unused code rule. I just learned to be proficient at those particular idioms. The java.util.Scanner class was helpful in this.<br /><br />Its neat seeing how different languages lend themselves to contests. You see many C++ programmers have a set of standard macros they use on TopCoder. I like the idea of extension methods for this use. If Java adds them (I think there is talk now for Java 8), I'll have to consider it.Michael Haddox-Schatzhttps://www.blogger.com/profile/02782657000665338948noreply@blogger.comtag:blogger.com,1999:blog-5724099066106449846.post-10550976330659758732011-07-12T15:16:30.583-04:002011-07-12T15:16:30.583-04:00As a C# programmer I faced similar problems as you...As a C# programmer I faced similar problems as you in Java. At least for the parsing problems I worked around by creating helper libraries beforehand that simplify splitting, converting arrays,...<br /><br />Thanks to extension methods the result looked very similar to your ruby code:<br />`var arr=ReadLine().Split().ToInt();`<br /><br />`each_index` looks nice. I need to add something similar. Those pesky index bugs have bitten me far too often. And debugging eats so much valuable time.CodeInChaoshttps://github.com/CodesInChaosnoreply@blogger.comtag:blogger.com,1999:blog-5724099066106449846.post-52616446076081365952011-05-16T10:09:23.252-04:002011-05-16T10:09:23.252-04:00While the results aren't official yet, it look...While the results aren't official yet, it looks like I have qualified in both the Google Code Jam (#1276 at <a href="http://code.google.com/codejam/contest/scoreboard?c=975485#sp=1261" rel="nofollow">http://code.google.com/codejam/contest/scoreboard?c=975485#sp=1261</a>) and the TCO (room 32 at <a href="http://www.topcoder.com/stat?c=last_match&rd=14524&sm=31&em=40&nm=10&dn=1" rel="nofollow">http://www.topcoder.com/stat?c=last_match&rd=14524&sm=31&em=40&nm=10&dn=1</a>). Google's next round is this weekend, TopCoder's is in a month.Michael Haddox-Schatzhttps://www.blogger.com/profile/02782657000665338948noreply@blogger.comtag:blogger.com,1999:blog-5724099066106449846.post-31743178579094633122011-05-16T09:16:14.615-04:002011-05-16T09:16:14.615-04:00so how did the madking actually do in the competit...so how did the madking actually do in the competition? Did he make it to the 2nd round? I don't see that mentioned anywhere.<br />-AlanAnonymousnoreply@blogger.com