1 / 31
Dec 2004

In the problem description it is said, fewer points are better, and this is also displayed in the ranklist for this problem. However, in the ranklist of the programming league it is reversed.

  • created

    Dec '04
  • last reply

    Feb '15
  • 30

    replies

  • 3.1k

    views

  • 10

    users

  • 3

    links

It looks even trickier than that... seems like the judge doesn't like Egor this time laughing

Btw, about the 0.5 bonus, is it possible to get more than one such bonus if we submit the best code for more than one language ?

No.
Now, the correct order is you, Maxim and me, while we have Maxim, me and you in the rank screen. That's why I said it doesn't like you only laughing

The bugs concerning the contest ranklists will be fixed in a few hours.

Yes, it is possible (the score may never exceed 1.5 points though).

There has been a stupid misunderstanding concerning Python (I was under the impression it was compiled to bytecode; all other available languages are compiled). Compilation will be introduced in the evening and solutions will be rejudged. We cannot award points for code exploiting a weakness of the judge system.

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.