The Project Euler thread

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • leonid
    I am leonid
    FFR Simfile Author
    FFR Music Producer
    • Oct 2008
    • 8080

    #376
    Re: The Project Euler thread



    Literally took me 3 minutes to solve
    Now I ran out of easy problems



    Proud member of Team No

    Comment

    • rushyrulz
      Digital Dancing!
      FFR Simfile Author
      FFR Music Producer
      • Feb 2006
      • 12985

      #377
      Re: The Project Euler thread



      first one that I actually used pencil and paper for.


      Comment

      • leonid
        I am leonid
        FFR Simfile Author
        FFR Music Producer
        • Oct 2008
        • 8080

        #378
        Re: The Project Euler thread



        woot



        Proud member of Team No

        Comment

        • leonid
          I am leonid
          FFR Simfile Author
          FFR Music Producer
          • Oct 2008
          • 8080

          #379
          Re: The Project Euler thread



          Easy

          A question... Isn't problem 266 a 2-partition problem (NP-complete)?
          I don't see any way other than having to run an exponential (or pseudo-polynomial) runtime algorithm that takes ages to finish



          Proud member of Team No

          Comment

          • Reincarnate
            x'); DROP TABLE FFR;--
            • Nov 2010
            • 6332

            #380
            Re: The Project Euler thread

            There is a way

            Every single problem gets tested against the minute-rule before release.

            Problem 266 is doable in a lot less time than that, even

            Comment

            • leonid
              I am leonid
              FFR Simfile Author
              FFR Music Producer
              • Oct 2008
              • 8080

              #381
              Re: The Project Euler thread

              But it is a 2-partition problem.. unless mod 10^16 part is giving any twist



              Proud member of Team No

              Comment

              • Reincarnate
                x'); DROP TABLE FFR;--
                • Nov 2010
                • 6332

                #382
                Re: The Project Euler thread

                Idk about this "two partition" thing but FWIW I can output the full result in Python in under 8 seconds

                It's hard to say more without spoiling
                Last edited by Reincarnate; 06-13-2014, 07:56 PM.

                Comment

                • leonid
                  I am leonid
                  FFR Simfile Author
                  FFR Music Producer
                  • Oct 2008
                  • 8080

                  #383
                  Re: The Project Euler thread



                  It's about sums instead of products here, but p266 becomes the same once you put logs on it

                  whatever, I'll get back to this later



                  Proud member of Team No

                  Comment

                  • Reincarnate
                    x'); DROP TABLE FFR;--
                    • Nov 2010
                    • 6332

                    #384
                    Re: The Project Euler thread

                    Hard to say more without spoiling, but there's something being overlooked (try to find another kind of problem that this is similar to)

                    Comment

                    • leonid
                      I am leonid
                      FFR Simfile Author
                      FFR Music Producer
                      • Oct 2008
                      • 8080

                      #385
                      Re: The Project Euler thread



                      level up \o/



                      Proud member of Team No

                      Comment

                      • leonid
                        I am leonid
                        FFR Simfile Author
                        FFR Music Producer
                        • Oct 2008
                        • 8080

                        #386
                        Re: The Project Euler thread



                        easy



                        Proud member of Team No

                        Comment

                        • leonid
                          I am leonid
                          FFR Simfile Author
                          FFR Music Producer
                          • Oct 2008
                          • 8080

                          #387
                          Re: The Project Euler thread



                          easy



                          Proud member of Team No

                          Comment

                          • leonid
                            I am leonid
                            FFR Simfile Author
                            FFR Music Producer
                            • Oct 2008
                            • 8080

                            #388
                            Re: The Project Euler thread



                            tricky



                            Proud member of Team No

                            Comment

                            • leonid
                              I am leonid
                              FFR Simfile Author
                              FFR Music Producer
                              • Oct 2008
                              • 8080

                              #389
                              Re: The Project Euler thread



                              Why am I doing physics on PE



                              Proud member of Team No

                              Comment

                              • Reincarnate
                                x'); DROP TABLE FFR;--
                                • Nov 2010
                                • 6332

                                #390
                                Re: The Project Euler thread

                                Still a fun little problem

                                Comment

                                Working...