|
|
#281 |
|
x'); DROP TABLE FFR;--
Join Date: Nov 2010
Posts: 6,332
|
also, honorable mention for just being a really cool and interesting problem with an elegant solution:
http://projecteuler.net/problem=202 |
|
|
|
|
|
#282 |
|
FFR Veteran
Join Date: Dec 2007
Posts: 1,251
|
Project Euler makes me feel dumb. I do appreciate the math tidbits that I'm forced to look up though. I had no clue of Euler's Totient function and many number theory ideas before messing with the problems.
|
|
|
|
|
|
#283 |
|
I am leonid
Join Date: Oct 2008
Location: MOUNTAIN VIEW
Age: 36
Posts: 8,080
|
|
|
|
|
|
|
#284 |
|
Under the scarlet moon
Join Date: Jan 2014
Age: 32
Posts: 923
|
![]() Those problems are fun. I'll try 328 later. |
|
|
|
|
|
#285 |
|
behanjc & me are <3'ers
Join Date: Jul 2006
Posts: 2,051
|
The latest problem, 473, looks really fun. http://projecteuler.net/problem=473
Right after reading it, I feel like finding the phidigital representation of an integer is NP complexity class. However, given the nature of these problems and the limit they ask for, I'm guessing there's some brilliant trick here. EDIT: PFFFFT the trick was so stupidly obvious im dumb
__________________
Rhythm Simulation Guide Comments, criticism, suggestions, contributions, etc. are all welcome. Piano Etude Demon Fire sheet music Last edited by stargroup100; 05-25-2014 at 02:28 AM.. |
|
|
|
|
|
#286 |
|
behanjc & me are <3'ers
Join Date: Jul 2006
Posts: 2,051
|
This problem is still hard as balls though. The "obvious" algorithm doesn't really help you compute anything efficiently, at least not without some heavy-duty work put onto it.
__________________
Rhythm Simulation Guide Comments, criticism, suggestions, contributions, etc. are all welcome. Piano Etude Demon Fire sheet music |
|
|
|
|
|
#287 |
|
Digital Dancing!
Join Date: Feb 2006
Location: 80 billion club, NE
Age: 33
Posts: 12,985
|
Code:
Problem 17 If the numbers 1 to 5 are written out in words: one, two, three, four, five, then there are 3 + 3 + 5 + 4 + 4 = 19 letters used in total. If all the numbers from 1 to 1000 (one thousand) inclusive were written out in words, how many letters would be used? NOTE: Do not count spaces or hyphens. For example, 342 (three hundred and forty-two) contains 23 letters and 115 (one hundred and fifteen) contains 20 letters. The use of "and" when writing out numbers is in compliance with British usage. ![]() this one was a recursive nightmare, almost wanted to pencil and paper it.
__________________
![]() ![]() ![]() ![]() ![]() ![]()
|
|
|
|
|
|
#288 | |
|
behanjc & me are <3'ers
Join Date: Jul 2006
Posts: 2,051
|
Quote:
__________________
Rhythm Simulation Guide Comments, criticism, suggestions, contributions, etc. are all welcome. Piano Etude Demon Fire sheet music |
|
|
|
|
|
|
#289 |
|
I am leonid
Join Date: Oct 2008
Location: MOUNTAIN VIEW
Age: 36
Posts: 8,080
|
That was easier than I feared, but it still took me a couple hours to come up with the right code
![]() |
|
|
|
|
|
#290 |
|
I am leonid
Join Date: Oct 2008
Location: MOUNTAIN VIEW
Age: 36
Posts: 8,080
|
![]() PARI/GP rocks |
|
|
|
|
|
#291 |
|
I am leonid
Join Date: Oct 2008
Location: MOUNTAIN VIEW
Age: 36
Posts: 8,080
|
![]() I'm on fire |
|
|
|
|
|
#292 |
|
behanjc & me are <3'ers
Join Date: Jul 2006
Posts: 2,051
|
that thing is fucking amazing
I put it on my phone LOL
__________________
Rhythm Simulation Guide Comments, criticism, suggestions, contributions, etc. are all welcome. Piano Etude Demon Fire sheet music |
|
|
|
|
|
#293 |
|
I am leonid
Join Date: Oct 2008
Location: MOUNTAIN VIEW
Age: 36
Posts: 8,080
|
![]() Used Ruby this time |
|
|
|
|
|
#294 | |
|
Digital Dancing!
Join Date: Feb 2006
Location: 80 billion club, NE
Age: 33
Posts: 12,985
|
Quote:
Just like how problem 19 (how many Sundays occurred on the first day of the month in the 20th century?) could be easily guessed by
__________________
![]() ![]() ![]() ![]() ![]() ![]()
Last edited by rushyrulz; 06-1-2014 at 05:06 PM.. |
|
|
|
|
|
|
#295 |
|
x'); DROP TABLE FFR;--
Join Date: Nov 2010
Posts: 6,332
|
The first 100 problems are pretty simple
Try some later problems for more of a challenge |
|
|
|
|
|
#296 |
|
Digital Dancing!
Join Date: Feb 2006
Location: 80 billion club, NE
Age: 33
Posts: 12,985
|
I'm having a hoot with the first 100 for now D:
__________________
![]() ![]() ![]() ![]() ![]() ![]()
|
|
|
|
|
|
#297 |
|
Fractals!
|
90% of these have me saying "I wish I knew how to solve this problem period, let alone write a program to solve it."
|
|
|
|
|
|
#298 |
|
I am leonid
Join Date: Oct 2008
Location: MOUNTAIN VIEW
Age: 36
Posts: 8,080
|
![]() Dynamic programming |
|
|
|
|
|
#299 |
|
I am leonid
Join Date: Oct 2008
Location: MOUNTAIN VIEW
Age: 36
Posts: 8,080
|
![]() Another DP Ruby is slow.. |
|
|
|
|
|
#300 |
|
I am leonid
Join Date: Oct 2008
Location: MOUNTAIN VIEW
Age: 36
Posts: 8,080
|
![]() ~_~ |
|
|
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|