Thread: Accep the challenge 50!

  1. #1
    Registered User
    Join Date
    Nov 2001
    Location
    Mexico City
    Posts
    33

    Accep the challenge 50!

    Find 50! , that is 50x49x48x....x1 or maybe 150! ????
    Do the code and we'll check de number.

    (Code not made in C++.)
    If you want to be happy one hour: take a nap
    if you want to be happy one day: go fishing
    If you want to be happy a year: inherit a fortune
    if you want to be happy for a life time: HELP SOMEBODY
    chinisse say.

  2. #2
    Registered User
    Join Date
    Jul 2007
    Posts
    131
    50! = 30414093201713378043612608166064768844377641568960 512000000000000

    150! = 57133839564458545904789328652610540031895535786011 26418254837583317982912484539839312657448867531114 53771078787468542041626662501986845044663559491959 22066574942592095735778929325357290444962472405416 79072211844543712226967552000000000000000000000000 0000000000000

    14 bytes for 50! and 15 for 150!. I may post the code if OP tells what's the point in this if this isn't some ridiculous sort of homework.

  3. #3
    Registered User
    Join Date
    Nov 2001
    Location
    Mexico City
    Posts
    33

    OK!!!

    Is it possible for the knigth to visit all the squares of the chess board just once?
    and, if so how?
    If you want to be happy one hour: take a nap
    if you want to be happy one day: go fishing
    If you want to be happy a year: inherit a fortune
    if you want to be happy for a life time: HELP SOMEBODY
    chinisse say.

  4. #4
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    28,412
    Quote Originally Posted by Gustaff
    Is it possible for the knigth to visit all the squares of the chess board just once?
    and, if so how?
    Are you really trying to create a contest, or are you just asking trivia questions?
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  5. #5
    Registered User
    Join Date
    Nov 2001
    Location
    Mexico City
    Posts
    33
    Just asking... do you have any contest in mind?
    If you want to be happy one hour: take a nap
    if you want to be happy one day: go fishing
    If you want to be happy a year: inherit a fortune
    if you want to be happy for a life time: HELP SOMEBODY
    chinisse say.

  6. #6
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,656
    Just google "programming contest" and you'll find no end of sites with hundreds (nay, thousands) of problems.

    Enough to keep you sated for years.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  7. #7
    Registered User
    Join Date
    Nov 2001
    Location
    Mexico City
    Posts
    33
    Answer the question or post your code.
    If you want to be happy one hour: take a nap
    if you want to be happy one day: go fishing
    If you want to be happy a year: inherit a fortune
    if you want to be happy for a life time: HELP SOMEBODY
    chinisse say.

  8. #8
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,793
    If it wasn't the Summer holidays I'd say this smells like homework to me...

  9. #9
    Woof, woof! zacs7's Avatar
    Join Date
    Mar 2007
    Location
    Australia
    Posts
    3,459
    Quote Originally Posted by Fordy View Post
    If it wasn't the Summer holidays I'd say this smells like homework to me...
    Depends where you are in the world... Certainly not summer, nor holidays here

  10. #10
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,656
    LOL - demands to do homework.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  11. #11
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    28,412
    Quote Originally Posted by Gustaff
    Just asking... do you have any contest in mind?
    Since you are just asking trivia questions, go improve your search skills and ask a search engine.

    If you want to post a contest instead, search the older threads in this forum for ideas of contest formats. Come up with reasonable and clear rules, along with judging criteria.
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  12. #12
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,793
    Quote Originally Posted by zacs7 View Post
    Depends where you are in the world... Certainly not summer, nor holidays here
    Ah yeah... I didnt really think that through, did I?



  13. #13
    Registered User
    Join Date
    Jul 2010
    Posts
    55
    These questions sound like those of Project Euler's...

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. need help with arrays!
    By lil3thunder in forum C++ Programming
    Replies: 4
    Last Post: 12-01-2009, 01:40 PM
  2. allegro problem : /
    By bada in forum Game Programming
    Replies: 4
    Last Post: 03-30-2008, 10:08 AM
  3. Issue w/ Guess My Number Program
    By mkylman in forum C++ Programming
    Replies: 5
    Last Post: 08-23-2007, 01:31 AM
  4. Requesting a challenge
    By RealityFusion in forum C++ Programming
    Replies: 8
    Last Post: 08-18-2003, 08:24 PM
  5. Please help debug this lab! Please!
    By mack_ol in forum C Programming
    Replies: 0
    Last Post: 02-17-2002, 12:32 PM