Author Topic: Challenges  (Read 2699 times)

Xordan

  • Crystal Space Developer
  • Forum Addict
  • *
  • Posts: 3845
  • For God and the Empire
    • View Profile
Challenges
« on: April 16, 2004, 12:00:16 am »
I\'m boooored....so I decided to see if we have any clever people on this forum other than me. I\'ll start simple, and move onto harder stuff. Post when u\'ve got the answer. And yes, I know all the answers:

Logic:

The number on each gear is the number of teeth it has. If you turn any one of the gears, the others also turn.



The gears are now in their starting position. If you start turning them and continue to turn them, eventually all three will end up at their starting positions.

How many complete turns will each gear make in order to have all three back in their starting position?

Encryption:

Heres your first piece of encryption data, you shouldn\'t find this too difficult. In fact, it\'s really easy.

\"llew enod, skool ekil uoy tog ti, retne siht edoc ot teg ruoy txen rats : munacra\"

Programming:

All you have to do is find the value of Y on the 1,000th repetition \'Y=X^3-(X+Y)\' start with Y=1, X=1 then increment X and keep recalculating Y until X reaches 1,000

Hacking/Cracking:

ok, this is a simple warm up:

43e34a8949c397215be3a22db140beec

Once one has been completed, I\'ll post up a harder one of the same type.




« Last Edit: April 16, 2004, 12:03:19 am by Xordan »

TheGeneral

  • Hydlaa Notable
  • *
  • Posts: 627
    • View Profile
(No subject)
« Reply #1 on: April 16, 2004, 12:09:23 am »
The first 2 were easy, and I dun understand what you are aking in the other two? Is that a \"y\" prime of some sorts? As for the hacking, I have no bloody clue what to do with that thing...

Join BISM here: BISM
Join The Calen Vakhar
NEVER YOU HEAR ME!

Xordan

  • Crystal Space Developer
  • Forum Addict
  • *
  • Posts: 3845
  • For God and the Empire
    • View Profile
(No subject)
« Reply #2 on: April 16, 2004, 12:11:28 am »
post the answers for the first 2, and I\'ll put harder ones up. As for the third you need to do summin like this:

set X to 1
set Y to 1
repeat this until X is greater than 1000
   set Y to X^3 - (X + (the old value of Y))
   increase X by 1
end of the repeated bit
print X and Y

faldrok

  • Hydlaa Citizen
  • *
  • Posts: 376
    • View Profile
(No subject)
« Reply #3 on: April 16, 2004, 12:17:00 am »
The wheel(gear one is easy):

The big wheel(gear) will spin 9 times, the small wheel(gear) 25 times and the medium-sized wheel(gear) 15 times.

That adds up to an all-even 225 teeth turns. ;) Next one please.

Well done, looks like you got it, enter this code to get your next star :acranum

I am not too sure about the last few words...

Xordan

  • Crystal Space Developer
  • Forum Addict
  • *
  • Posts: 3845
  • For God and the Empire
    • View Profile
(No subject)
« Reply #4 on: April 16, 2004, 12:19:48 am »
lol, I\'m pulling a few of these of a challenge site I did ages ago. :) Others I make up myself. That\'s why the encryption may be a bit wierd.

Next logic:

A butcher goes to the market with $200 cash. He has to buy exactly 100 animals. There are cows, geese and chicken for sale. A cow costs $30, a goose is $2 and a chicken costs $0.50. He has to buy at least one of each animal and has to spend all his money.
How many of each animal should he buy?

Next Encryption

Wccn xiicvj, ecu\'dx avmahxn jpx rxactn
xtaveqjbct apmggxtwx, jpbr br jpx ibvrj
vxmg acnx ecu\'dx pmn jc avmah. Bj br amggxn
m rufrjbjujbct aeqpxv mtn br ctx ci jpx
ibvrj acnxr xdxv nxdxgcqxn. Pxvx br jpx txzj
acnx ecu rpcugn xtjxv : vxqqmvj
« Last Edit: April 16, 2004, 12:21:55 am by Xordan »

Ghostslayer

  • Hydlaa Citizen
  • *
  • Posts: 402
    • View Profile
(No subject)
« Reply #5 on: April 16, 2004, 02:50:38 am »
Butcher problem:

He needs to buy 3 cows, 41 goose and 56 chicken

3+41+56=100
3*30+41*2+56*.5=200

Programming:
Threw this into excel... so I don\'t know if its right or not :P

When x=1000, y=500749501

2nd Encryption:

Good effort, you\'ve cracked the second
encryption challenge, this is the first
real code you\'ve had to crack. It is called
a substitution cypher and is one of the
first codes ever developed. Here is the next
code you should enter : reppart
« Last Edit: April 16, 2004, 03:14:25 am by Ghostslayer »
Blitzers Guild
Hard Work Often Pays Off After Time, but Laziness Always Pays Off Now.

Xordan

  • Crystal Space Developer
  • Forum Addict
  • *
  • Posts: 3845
  • For God and the Empire
    • View Profile
(No subject)
« Reply #6 on: April 16, 2004, 08:48:49 am »
Well done. :)

Programmming 2

Give the sum of the squares of all even numbers between 0 and 2500 (inclusive).
For example 4 + 16 + 36 + ...

Logic 3

The Riddle

There are 5 houses in five different colours.

In each house lives a person with a different nationality.

These five owners drink a certain type of beverage, eat a different food and keep a certain pet.

No owners have the same pet, eat the same food or drink the same beverage.

The Clues

the Brit eats KFC
the Kiwi drinks DB Export
the Aussie lives in the Grey house
the Red house is on the immediate left of the Brown house
the person who eats Burger King rears birds
the man who eats Burger Fuel lives next to the one who drinks Stella
the man living in the center house drinks VB
the man who eats Burger Fuel lives next to the one who keeps cats
the German lives in the first house
the man who keeps horses lives next to the man who eats McDonalds
the American keeps dogs as pets
the owner who eats Wendys drinks Heineken
the Red house\'s owner drinks Lion Red
the owner of the Green house eats McDonalds
the German lives next to the Yellow house
     
The question

Who owns the fish? (Give Nationallity, House, Beer, and Food)


Encryption 3

mvkzgxbqwv ivaemz : bnqpazmaimk
« Last Edit: April 16, 2004, 08:49:52 am by Xordan »

lynx_lupo

  • Veteran
  • *
  • Posts: 1431
  • Sorbus aria!
    • View Profile
    • Linux pri nas
(No subject)
« Reply #7 on: April 16, 2004, 02:18:32 pm »
Cool! :)

I don\'t know about the 1st programming one, as the equation isn\'t valid with the starting data. Didn\'t try the encryption ones yet - too lazy. I\'ll make myself a proggy for the shifting first. :P

Code: [Select]
#include using namespace std;  int main() {    int sum=0;  for(int ii=2; ii<2501; ii=ii+2){        sum+=ii^2;  }   cout<
1563750 is the sum. Really simple code(bah formatting).

PUPPY!!! :D I think i tried this one before... looks like the \"Einstein\" one.



For classical text riddles, that are actually PS related: http://www.planeshift3d.com/wbboard/thread.php?threadid=6918&boardid=22& :D
"Amor sceleratus habendi"- Ovid
"First they ignore you, then they laugh at you, then they fight you, then you eat them." -Godzilla

Xordan

  • Crystal Space Developer
  • Forum Addict
  • *
  • Posts: 3845
  • For God and the Empire
    • View Profile
(No subject)
« Reply #8 on: April 16, 2004, 02:57:34 pm »
Nope, wrong. ;) Try again.

Ghostslayer

  • Hydlaa Citizen
  • *
  • Posts: 402
    • View Profile
(No subject)
« Reply #9 on: April 16, 2004, 03:58:14 pm »
As I\'m too lazy to install/find the cds to actually do the programming.. its back to excel :P

Programming 2:

Sum of even squares between 0-2500: 22100

Edit: Just realized I may have read it wrong.  Did you mean the squares go up to 2500 (which is the answer I put) or the even numbers go up to 2500?  In which case the answer is huge :) = 2 607 292 500

I\'ll try the other ones when I have time to think ;)

Edit 2: Looks like I missed a digit... looks like I shouldn\'t be thinking early after I wake up :P
« Last Edit: April 17, 2004, 01:35:55 am by Ghostslayer »
Blitzers Guild
Hard Work Often Pays Off After Time, but Laziness Always Pays Off Now.

lynx_lupo

  • Veteran
  • *
  • Posts: 1431
  • Sorbus aria!
    • View Profile
    • Linux pri nas
(No subject)
« Reply #10 on: April 16, 2004, 05:19:51 pm »
2607292500, yeah.
Firstly, the ^ operator didn\'t work and secondly I declared a too small data type. And I forgot return 0; !!!:tdown:
"Amor sceleratus habendi"- Ovid
"First they ignore you, then they laugh at you, then they fight you, then you eat them." -Godzilla

Xordan

  • Crystal Space Developer
  • Forum Addict
  • *
  • Posts: 3845
  • For God and the Empire
    • View Profile
(No subject)
« Reply #11 on: April 16, 2004, 07:27:22 pm »
yup, 2607292500 is right. :)

This one is fun. :D

Programming 3

Find the products of X times Y, where X and Y are integers which are greater than 0 and less than 1000.
From these products find the sum of any which are palindromes,

Dameon

  • Hydlaa Citizen
  • *
  • Posts: 361
    • View Profile
(No subject)
« Reply #12 on: April 16, 2004, 09:09:22 pm »
Lol, the hacking one...

use \'unescape\' much? I would type in what it translates to, but i\'m sick and feeling lazy.

Xordan

  • Crystal Space Developer
  • Forum Addict
  • *
  • Posts: 3845
  • For God and the Empire
    • View Profile
(No subject)
« Reply #13 on: April 16, 2004, 10:09:46 pm »
Nope never use it.
Too lazy to type in a 5 letter word!! :P

Ghostslayer

  • Hydlaa Citizen
  • *
  • Posts: 402
    • View Profile
(No subject)
« Reply #14 on: April 17, 2004, 01:34:44 am »
Logic Three:

The fish is owned by the Brit in the Red House.  He drinks Lion Red, and eats KFC.
Blitzers Guild
Hard Work Often Pays Off After Time, but Laziness Always Pays Off Now.