Python PIe

View as PDF

Submit solution

Points: 1 (partial)
Time limit: 1.0s
Memory limit: 32M

Author:
Problem type
Allowed languages
Python

Levve loves pie, but not just any kind of pie, he loves PIe! PIe is made up of only two, rather odd, ingredients, being the mathematical constants of \pi and e.

However, Levve has somehow managed to forget the ingredient list for his favourite dessert! Could you help him by printing the first 6 digits of \pi \cdot 10^5 and e \cdot 10^5?

Levve just has a little problem with this. He absolutely hates any number other than \pi or e, so you must not use any numeric characters in your program. Furthermore, Levve is a busy man (busy at making PIes, of course), so he insists that your code be as short as possible! Finally, Levve is requiring you to only use ASCII characters!

Input Specification

Levve is too hungry for PIe to provide input. (There is no input for this problem.)

Output Specification

You are to output:

314159 271828

Grading

You will be given a score of 4^{-0.01(N-360)}+5 where N is the length of your program in bytes. However, if you use any numeric or non-ASCII characters in your program, you will receive a score of 0.


Comments


  • 0
    juniper3041  commented on Jan. 23, 2022, 4:21 p.m. edit 20

    Thank you for the problem. It certainly deserves more than 1 point given that no one has succeeded at getting all 100 points.

    PS \displaystyle \cancel{I'm fairly sure it's possible to get 100 points. [Perhaps] The 98 pointers are missing out on an optimization they haven't tried} (I can't get 100 points, let alone 98 points!)


    • 1
      wleung_bvg  commented on Jan. 25, 2022, 11:55 p.m.

      1 point problems are generally reserved for non-standard problems (such as this one). These are generally April Fool's day problems, or other problems you would not usually see on a programming contest similar to CCC, ICPC, etc.


    • 2
      Josh  commented on Jan. 25, 2022, 11:24 p.m.

      It's also worth noting that not every problem is supposed to be solvable. In fact, the scoring function of this problem was set such that none of the known solutions at the time would get 100 points.


    • 0
      Josh  commented on Jan. 25, 2022, 9:28 a.m. edited

      And how would you know that we haven't tried that optimisation? Or that any further optimisation exists?


      • 0
        juniper3041  commented on Jan. 25, 2022, 2:02 p.m.

        True, I don't know for sure if the 98ers haven't tried that optimization. The one I'm thinking of results in a one byte savings (which may be enough for 98 -> 100). I don't really want to post it here because I imagine the 98ers are the type of people who would prefer to solve it without hints :). I'll be happy just to discover some day what it is the 98ers did to get 98.


        • 2
          Dingledooper  commented on Jan. 25, 2022, 3:00 p.m.

          Just a guess, but if you're referring to switching to Python 2 to allow print without parentheses, it doesn't work. Perhaps the fact that all the top submissions use Python 3 is some sort of hint...


          • -1
            juniper3041  commented on Jan. 25, 2022, 7:35 p.m.

            Yes, that was it. I wonder if there's a mistake in the scoring algorithm then.