Jump to content
Patrunjel

Challenge #2

Recommended Posts

Posted

Castigatorul challenge-ului precedent a fost cmiN .Felicitari :)

De data asta am ceva mai usor, poate asa voi avea mai mult de un participant :)) Clasica problema a rucsacului ( *Disclaimer* Cine cauta pe net rezolvarea problemei suge pula la cai morti *Gada Disclaimeru* ).

Aveti un numar de n obiecte.Pentru fiecare stiti greutatea (kg) si pretul pe care il luati pe obiect, daca il duceti la amanet.Tinand cont ca aveti o Dacia 1310 care duce maxim X kilograme (X citit de la tastatura).Scrieti un program prin care sa stabiliti pe care dintre cele n obiecte le bagati in Dacie, pentru a lua cat mai multi bani (Faceti un singur drum, si nu puteti taia obiectele, au valoare sentimentala)

Si, inca odata, felicitari cmiN

images%3Fq%3Dyou%2Bda%2Bman&zoom=1&q=you+da+man&hl=ro&usg=__0d8VoO4b98P-0dU-qFqej1BK7a0=&sa=X&ei=8OtrTf2hFMPNsga4lb30DA&ved=0CCcQ9QEwAA

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...