12 / 31
Dec 2004

OK, but will it be possible to enter with more than one language ? Currently, only the best score is kept, which means only one language.

Well, I have to agree that my last solution may not be "in the spirit" of the problem smile but hey ! the rules are the same for everybody and everybody can exploit them confused What's the problem with that ? (I would be happy to hear other people's comments on that)
At least, you will have to admit that my solution has a really nice tree shape... stuck_out_tongue

/usr/bin/python -OO -c'import py_compile, sys; py_compile.compile(sys.argv[1], sys.argv[2], None, True)' $1 $2

We should have done it sooner.. (however, speed gain seems insignificant).

As for the fairness.. Your program certainly solved the task smile But, as Adrian said, it was a mistake: he thought we already had compiled Python programs to bytecode first. For example, Perl is still interpreted directly from source and it is banned in this problem because of this.

Yes, higher-ranked solutions to CTQUINE look great wink

Pfff... not funny frowning

But I can't resist the pleasure of publishing my solution now laughing It scores 22 points, with 20 lines and two penalties of 1. Anyone able to beat it ? 8)
(copy and paste, as the font width is not fixed here)

    #
    #
   ###
    #
   ###
  #####
    #
   ###
  #####
import \
    \
  os,\
  sys;\
 print \
open(sys\
    \
   . \
  argv\
 [0] ).\
read(  ),

Sure. See the ranklists now (each plus stands for +0.5 point). So at present you have the maximum possible score (1.5 points).

(There is still a minor feature: the ranks for the problem here are generated per user, per language, and therefore your relative position is calculated differently than in the official standings here. I think such behaviour is fairly harmless and there is no point in changing it).

I wonder why I get WA with my Java program. I tested it in Linux and Windows environment, and in both cases it exactly prints its sourcecode.
Maybe it is because I don't terminate the sourcecode with a newline, and spoj adds it? But my C program that also doesn't end with a newline got Accepted confused

A JVM related problem (please see the email I sent you). Everything should be ok now. Sorry.

BTW
today i wrote my first program on JAVA
it was sollution to this problem smile))

Nice work smile

The same goes for me with my Python programs smile
Thanks to the authors for such a challenging and funny problem, which helps learning new languages.

I agree with Pascal, it's a very nice problem wink
It's the problem that can attract attention to this contest

ps. Pascal, call me Max, please wink

Thanks, its fixed smile.

I had some spare time at the weekend and I've submitted a solution to the problem (id:50900). It is obviously outside the ranking, but I would be happy to see it beaten, anyway.

Update: Congrats, Frank smile.

I was hoping I'd not have to improve that solution anymore, but when I saw you submit a solution scoring less than 100 points I just couldn't resist creating one too. Accidentally it ended up scoring better than yours... laughing

I have some sort of bug with c#
on my local machine my program creates answer absolutely identical to source (compared using fc), but on judge i got WA
don't you know, why it may be?

ps I used MSVS 2003.NET

mono's "Dead code elimination" optimization was to blame.

Well, our mono version is a bit old, we'll have to upgrade soon.. They might have repaired it already.

Rejudging of all C# programs is in process.