User
Pass
2FA
 
 

Problema logica
Go to page 1, 2, 3  Next    
 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Freakz Forum Index -> Trash Bin -> Trash -> Discussions/Help
Author Message4596
Akazuk

[rank][/rank]



Status: Offline
(online 3 days ago)
Joined: 24 Jun 2007
Posts: 4792, Topics: 263
Location: Pandaemonium

Reputation: 684.3
Votes: 106

 
Post Posted: 23-03-2009, 09:44:13 | Translate post to: ... (Click for more languages)

Ai un hotel. Acel hotel are un numar infinit de camere, insa toate sunt ocupate. Deci camera 1 ocupata camera 2 ocupata camera 3 ocupata ... camera 19943 - ocupata ... etc. si iti vin niste clienti noi - respectiv 10 persoane. Cum le poti face loc in hotel ?

Mentionez:

In fiecare camera ocupata se afla o persoana.
o persoana = o camera. Nu poti pune mai multe persoane in aceeasi camera.
Nu poti pune una dintre persoane intr-o camera deja ocupata.
Nu poti da afara pe cei din camerele ocupate.
Nu-i poti astepta sa plece.
Ii poti muta dintr-o camera in alta cat timp nu vor fi 2 persoane in aceeasi camera.
Aceasta este o problema cu infinitul, infinitul poate pune la dispozitie muuuuuuulte "chestii".

Good-luck!

0 0
  
Back to top
View user's profile Send private message
revox

[Psychotic]



Status: Offline
(since 13-03-2023 07:43)
Joined: 11 Mar 2008
Posts: 9596, Topics: 492
Location: Romania

Reputation: 2911.8
Votes: 328

Post Posted: 23-03-2009, 09:48:14 | Translate post to: ... (Click for more languages)

este o tampenie.
infinitul nu are limita. deci nu ai cum sa le ocupi pe toate.

0 0
  
Back to top
View user's profile Send private message
MegaHertz

[Mentally Stable]



Status: Offline
(since 05-09-2009 20:54)
Joined: 03 Jan 2009
Posts: 177, Topics: 13
Location: Romania

Reputation: 67.3
Votes: 10

Post Posted: 23-03-2009, 10:00:01 | Translate post to: ... (Click for more languages)

Tu poti opera cu infinitul ? -
0 0
  
Back to top
View user's profile Send private message
headpxkr9n
[Banned user]


Banned


Status: Offline
(since 29-08-2009 20:20)
Joined: 10 Aug 2008
Posts: 682, Topics: 43
Location: Romania

Reputation: 84.9
Votes: 15

Post Posted: 23-03-2009, 10:20:27 | Translate post to: ... (Click for more languages)

*0ranGe ! Killer wrote:
este o tampenie.
infinitul nu are limita. deci nu ai cum sa le ocupi pe toate.

Pai dar Chuck Noris a reusit sa numere pana la infinit,de doua ori Thinking.
Anyway,subscriu.


Patience and persistence can bring down the tallest trees.

I am a world before I am a man
I was a creature before I could stand
I will remember before I forget
0 0
  
Back to top
View user's profile Send private message
Neo

[Always & Forever]



Status: Offline
(since 07-09-2014 10:52)
Joined: 05 Sep 2006
Posts: 1806, Topics: 101
Location: la doi pashi in urma ta ... ;;)

Reputation: 206.7
Votes: 24

Post Posted: 23-03-2009, 10:53:37 | Translate post to: ... (Click for more languages)

daca hotelul ar fi avut camere pana la infinit ar fi fost sfarsitu lumii


0 0
  
Back to top
View user's profile Send private message
revox

[Psychotic]



Status: Offline
(since 13-03-2023 07:43)
Joined: 11 Mar 2008
Posts: 9596, Topics: 492
Location: Romania

Reputation: 2911.8
Votes: 328

Post Posted: 23-03-2009, 12:13:56 | Translate post to: ... (Click for more languages)

Neo wrote:
daca hotelul ar fi avut camere pana la infinit ar fi fost sfarsitu lumii

de unde ai dedus tu asta?

0 0
  
Back to top
View user's profile Send private message
ion

[prin vacante]



Status: Offline
(since 10-12-2018 10:49)
Joined: 30 Jan 2008
Posts: 7503, Topics: 333
Location: Romania

Reputation: 1770.2
Votes: 191

 
Post Posted: 23-03-2009, 14:19:59 | Translate post to: ... (Click for more languages)

muti pe fiecare in camera urmatoare, astfel incat sa ramana libera prima. si repeti manevra pana ii cazezi pe toti 10. sau ii muti de la inceput pe fiecare cu 10 camere mai in fata.


0 0
  
Back to top
View user's profile Send private message Yahoo! Messenger ID
Malpraxxiss

[Very Important Person]



Status: Offline
(since 17-08-2022 18:54)
Joined: 06 Nov 2006
Posts: 1086, Topics: 54
Location: Romania

Reputation: 1206.4
Votes: 30

Post Posted: 23-03-2009, 19:31:39 | Translate post to: ... (Click for more languages)

Le zici sa se duca vis-a-vis unde e un alt hotel -

Nu ai precizat in ce hotel sa le faci loc

0 0
  
Back to top
View user's profile Send private message
Akazuk

[rank][/rank]



Status: Offline
(online 3 days ago)
Joined: 24 Jun 2007
Posts: 4792, Topics: 263
Location: Pandaemonium

Reputation: 684.3
Votes: 106

 
Post Posted: 23-03-2009, 23:29:05 | Translate post to: ... (Click for more languages)

ion.mzk wrote:
muti pe fiecare in camera urmatoare, astfel incat sa ramana libera prima. si repeti manevra pana ii cazezi pe toti 10. sau ii muti de la inceput pe fiecare cu 10 camere mai in fata.


pe aproape -

chestia era

1 in 2
2 in 4
3 in 6
4 in 8
5 in 10
6 in 12
7 in 14

si aveam:
1- gol
2- ocupat
3- gold
4- ocupat
....

-

0 0
  
Back to top
View user's profile Send private message
Shocker

[Freakz owner]



Status: Offline
(since 08-02-2020 12:17)
Joined: Momentul zero
Posts: 33986, Topics: 1350
Location: localhost

Reputation: 6485.6
Votes: 829

   
Post Posted: 24-03-2009, 00:12:03 | Translate post to: ... (Click for more languages)

Cum vine asta? Cum sa muti pe 1 in 2? Nu ar insemna sa fie 2 in camera 2?

FREAKZ COMMUNITY @ Facebook
WOW FREAKZ @ Facebook
0 0
  
Back to top
View user's profile Send private message
Levier
[Banned user]


Banned


Status: Offline
(since 21-08-2012 11:57)
Joined: 15 Feb 2007
Posts: 6876, Topics: 145
Location: Romania

Reputation: 86.5
Votes: 126

 
Post Posted: 24-03-2009, 01:28:57 | Translate post to: ... (Click for more languages)

probabil vrea sa zica acelasi lucru doar ca cu x*2 in loc de x+1 unde x este camera deja ocupata.

problema de logica insa este ca daca ai o infinitate si toate ocupate, considerand ca infinitul e infinit vei avea si o infinitate de clienti si deci nu poti caza pe nimeni fiindca daca vei muta pe unu in camera mai din fata, camera va fi ocupata, conform teoriei ca toate sunt ocupate, infinit.

0 0
  
Back to top
View user's profile Send private message
Akazuk

[rank][/rank]



Status: Offline
(online 3 days ago)
Joined: 24 Jun 2007
Posts: 4792, Topics: 263
Location: Pandaemonium

Reputation: 684.3
Votes: 106

 
Post Posted: 24-03-2009, 12:07:19 | Translate post to: ... (Click for more languages)

Shocker wrote:
Cum vine asta? Cum sa muti pe 1 in 2? Nu ar insemna sa fie 2 in camera 2?

pe 2 in 4 si pe 4 in 8 pe 8 in 16 pe 16 in 32 pe 32 in 64 etc. Infinitul iti permite asta -

0 0
  
Back to top
View user's profile Send private message
Shocker

[Freakz owner]



Status: Offline
(since 08-02-2020 12:17)
Joined: Momentul zero
Posts: 33986, Topics: 1350
Location: localhost

Reputation: 6485.6
Votes: 829

   
Post Posted: 24-03-2009, 12:30:43 | Translate post to: ... (Click for more languages)

Ce sa permita? Daca muti pe 1 in 2 deja ai 2 persoane in camera 2

FREAKZ COMMUNITY @ Facebook
WOW FREAKZ @ Facebook
0 0
  
Back to top
View user's profile Send private message
Gotenks

[UnfreakinBelievable]



Status: Offline
(since 02-11-2014 10:14)
Joined: 14 Nov 2006
Posts: 1074, Topics: 77
Location: ibiza

Reputation: 125.3
Votes: 49

 
Post Posted: 24-03-2009, 13:05:49 | Translate post to: ... (Click for more languages)

nici eu n-am inteles -


0 0
  
Back to top
View user's profile Send private message Yahoo! Messenger ID
MegaHertz

[Mentally Stable]



Status: Offline
(since 05-09-2009 20:54)
Joined: 03 Jan 2009
Posts: 177, Topics: 13
Location: Romania

Reputation: 67.3
Votes: 10

Post Posted: 24-03-2009, 13:55:08 | Translate post to: ... (Click for more languages)

Morala : Pelicanul sau babiþa .
0 0
  
Back to top
View user's profile Send private message

  Topic locked


Topic is closed, you cannot post any messages in it anymore

Locked by linke, 04 November 2017 20:42



 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Freakz Forum Index -> Trash Bin -> Trash -> Discussions/Help  
Go to page 1, 2, 3  Next    


The time now is 15-08-2025, 17:11:18
Copyright info

Based on phpBB ro/com
B

 
 
 







I forgot my password