Did Pascal beat C++ at the 2010 International Olympiad in Informatics?
wired.com
wired.com
I once knew one crazy guy, who in his free time practiced implementing algorithms and data structures commonly used in such contests (e.g. AVL trees, Dijkstra, KMP), just to waste less time writing them down.
I also really didn't like Kolstad's comment about "will he die a virgin." It reeked of extremely petty jealousy, and was just crass.
> “He was ahead for 98 percent of the competition. The question is,” Kolstad says slowly and with utter gravity, “will he die a virgin?”
If the goal is to write code quickly, Pascal does beat C & C++. But there are tons of other languages that aren't available.
Say, Pascal (or sometimes Delphi dialect of it) is historically very popular in Russia / Belarus, it's still a primary language in schools.
However, lots of student teams participating in ACM ICPC moved to Java just because it has more data structures in its standard library and it can handle bignums out of the box, meaning you have more time to think about solutions instead of coding long division.
And as for the question if this is a legitimate paranoia: yes it is. Many contestants are very smart, and there have been hacks and security breaches in high-profile contests.
The original title "Teen Mathletes Do Battle at Algorithm Olympics" is not much better, but at least describes correctly the subject.
And in answer to your question: meh, Pascal and C are pretty much the same damn language with a couple of minor changes, and C++ mostly just adds a bunch of junk which is useless for small projects.
Because that's what he's been practicing with. CS courses in schools in Eastern Europe are tought in Pascal, or at least used to be.
In the end it's as interesting as the brand of chess pieces at a chess tournament. If you look at the solutions to Google Code Jam (http://www.go-hero.net/jam/10/languages/0) for example then you'll see that it's mostly disgusting code made of arrays and loops and you can do those in pretty much any language. People get good at algorithms by sitting down, learning and implementing them, not by sweating the choice of language.
Also, there might be a bug in Wu's solution. It seems the first time through the while loop, the parameters for the Theory function are off by 1. i.e. m=6, l=10, w=6.