User
Pass
2FA
 
 

Problema info

 
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 -> Homework zone
Author Message2260
colea

[Creep]



Status: Offline
(since 30-01-2008 18:16)
Joined: 23 Apr 2007
Posts: 763, Topics: 48
Location: Printre scandalagii

Reputation: 91
Votes: 6

Post Posted: 12-11-2007, 18:43:49 | Translate post to: ... (Click for more languages)

am auzit ca va place informatica... asa ca va cer si eu ajutorul la urmatoarea problema -

Sa se afiseze toate solutiile posibile de la descompunerea unui numar natural n in suma de k numere distincte. (in c++) ... backtracking .. bleah n-am inteles deloc



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: 12-11-2007, 20:11:09 | Translate post to: ... (Click for more languages)

nici eu -


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

[Prototype]



Status: Offline
(since 28-03-2011 08:04)
Joined: 16 Jul 2007
Posts: 1330, Topics: 64
Location: Undeva in lumea mea :-s

Reputation: 166.1
Votes: 19

Post Posted: 12-11-2007, 20:13:53 | Translate post to: ... (Click for more languages)

sa mor daca ma inteles ceva de aici ...


One ShoT , One Kill , One NaMe ..... Berkley
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: 12-11-2007, 20:39:52 | Translate post to: ... (Click for more languages)

Ce e asa greu ma?
exemple:

n=13
k=4
suma=1+2+3+7

n=100
k=2
suma=49+51

Desigur, e vorba despre TOATE solutiile posibile, eu am dat doar cate o solutie sa se inteleaga


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

[Creep]



Status: Offline
(since 30-01-2008 18:16)
Joined: 23 Apr 2007
Posts: 763, Topics: 48
Location: Printre scandalagii

Reputation: 91
Votes: 6

Post Posted: 12-11-2007, 20:58:58 | Translate post to: ... (Click for more languages)

ms shocker, dar eu tre sa reproduc altgoritmul in limbaj c++, de stiut stiu cum decurge ...

tot ce stiu sa fac la problema deocamdat:

Code:
#include <iostream.h>
int n,k, v[10];


- pana acuma le intelegeam cu matrici, cu vectori... dar capitolul asta ma depaseste



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




 
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 -> Homework zone  


The time now is 29-04-2024, 13:17:57
Copyright info

Based on phpBB ro/com
B

 
 
 







I forgot my password


This message appears only once, so
like us now until it's too late ! :D
x