| |||||
| Bas de page | |
|---|---|
| Auteur | Sujet : Algo -> Dénombrer toutes les possibilités et les stocker |
Publicité | Posté le 15-05-2008 à 16:53:34 ![]() ![]() |
R3g fonctionnaire certifié ITIL | Tu connais le nombre de choix pour chaque option ? Si oui chaque option est un tableau contenant les choix, et tu parcours les tableaux dans 5 boucles imbriquées pour générer les combinaisons... et, comme dirait schnapsmann, c'est bidon, c'est quoi qui te pose problème au juste ? Message cité 1 fois Message édité par R3g le 15-05-2008 à 17:36:39 --------------- Au royaume des sourds, les borgnes sont sourds. |
xtof_83 Freeride Spirit | Ton truc c'est par colonnes ?
|
backdafuckup Back to da old skool |
Message édité par backdafuckup le 15-05-2008 à 17:39:44 |
backdafuckup Back to da old skool |
|
flo850 moi je | au debut , choix deja fait est un tableau vide
--------------- |
backdafuckup Back to da old skool |
|
masklinn í dag viðrar vel til loftárása |
Pour le second cas, en Python ça devrait donner un truc du genre:
Message édité par masklinn le 15-05-2008 à 17:48:08 --------------- I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box by throwing away the limits imposed by overbearing genetic regulations? Isn't that a good thing? |
Publicité | Posté le 15-05-2008 à 17:45:22 ![]() ![]() |
R3g fonctionnaire certifié ITIL | Mais y'a rien de compliqué là, c'est quoi qui te bloque ? --------------- Au royaume des sourds, les borgnes sont sourds. |
backdafuckup Back to da old skool | ?
|
masklinn í dag viðrar vel til loftárása |
--------------- I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box by throwing away the limits imposed by overbearing genetic regulations? Isn't that a good thing? |
backdafuckup Back to da old skool |
|
masklinn í dag viðrar vel til loftárása |
def permet de définir une fonction, [] crée un tableau ([[]] crée un tableau vide dans un tableau), if c'est un test booléen, not ça inverse un booléen, for a in b ça permet d'itérer dans la collection b, et a.append(b) ça ajoute b à la fin de a quand a est un tableau. edit: ah oui, et a[b] ça renvoie l'élément situé à l'index b de la collection a, et a[b:] ça renvoie une slice, un array contenant tous les éléments de l'array a à partir de l'index b inclus (et jusqu'à la fin) Message édité par masklinn le 15-05-2008 à 18:36:35 --------------- I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box by throwing away the limits imposed by overbearing genetic regulations? Isn't that a good thing? |
backdafuckup Back to da old skool | Il manque une réinitialisation qqpart sur l'algo de flo, mais j'arrive pas à trouver.....
|
masklinn í dag viðrar vel til loftárása |
Message édité par masklinn le 15-05-2008 à 19:02:16 --------------- I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box by throwing away the limits imposed by overbearing genetic regulations? Isn't that a good thing? |
sligor | demain soir je tenterais bien de faire ce truc en vhdl
|
backdafuckup Back to da old skool | Bon, je galère toujours...
|
backdafuckup Back to da old skool | Ca y est !!!!!!!!!
Message édité par backdafuckup le 16-05-2008 à 10:08:49 |
| Sujets relatifs | |
|---|---|
| afficher des image stocker dans bdd mysql | ALGO Génétique... |
| [Algo] Question d'ultra débutant | [Algo] Calcul de distance entre deux rectangles |
| stocker une image à partir d'un contexte mémoire | exo d'algo aide s'il vous pait |
| [Algo] de recherche | [Algo WEB] Suppression de fichiers générés pour téléchargement unique |
| Où stocker une variable transitoire ? [Résolu] | ecrire un algo |
| Plus de sujets relatifs à : Algo -> Dénombrer toutes les possibilités et les stocker | |






