Re: contests exercises (slightly OT)
On Nov 29, 9:54*am, superpollo <superpo...@tznvy.pbz> wrote:
> if you are familiar with sites likewww.spoj.pl(for instance), you will
> notice that the emphasis is on the efficiency and correctness of the
> algorithm, given a certain input format for granted. example:
> 1. Life, the Universe, and Everything
> Problem code: TEST
> Your program is to use the brute-force approach in order to find the
> Answer to Life, the Universe, and Everything. More precisely... rewrite
> small numbers from input to output. Stop processing input after reading
> in the number 42. All numbers at input are integers of one or two digits.
> as you can see, the input file format is given for granted.
> since lot of discussion here on clc are debated around the issue of
> "always be careful of user input" (for issues such as the buffer
> overflow attack), it looks like it is a prefeerd topic here, so i would
> like to know you opinion about the teaching value of such contest, which
> seem to ignore good programming habits (at least some of them).
> best regards
Okay, it took me an entire minute to come up with a solution to this
|All times are GMT. The time now is 01:25 PM.|
Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.