21 / 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.

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.

Finally, Intercal, however esoteric it might be, has been tamed by Robin Nittka smile. The 100000 point limit in CTQUINE has been removed; it doesn't change anything at all now anyway smile.

Very nice bug. You can use all languages in this problem - send it usual way (for example as SANTA problem) and only change name of problem to CTQUINE before submit. Java script for SANTA problem don't know about restrictions in CTQUINE problem! (Delete my result "1" - it is only experiment)

Wow, language limitations were not applied for contests (only a global per-contest mask smile ). Sorry/thanks, its fixed of course.

BTW. There really is very little js, and none at all here.

10 years later

Zadziałało na C++14... a, mogłem nie niszczyć mojej klawiatury.... ;D
Dzięki za bardzo ciekawy link!

1 month later

ja się jeszcze dołączę z racji tego, że u mnie w code blocksie program dziala, oraz poprawnie liczy, jedank sędzia wyrzuca mi błąd kompilacji, prosiłbym o wskazówki. [bbone=ada,2513]#include

using namespace std;

int ile,a,b;

int main()
{
cin >>ile;

for(int i=0;i<ile;i++)
{

        cin>>a>>b;

/// [narbej: kluczowa czesc programu wink ]
//
//

}
return 0;

}

[/bbone]