| |||||
| Auteur | Sujet : [blabla@olympe] Le topic du modo, dieu de la fibre et du monde |
|---|---|
masklinn í dag viðrar vel til loftárása | Reprise du message précédent :
--------------- 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 07-12-2020 à 21:12:00 ![]() ![]() |
Flaie |
Message cité 1 fois Message édité par Flaie le 07-12-2020 à 21:24:20 |
el muchacho Comfortably Numb |
--------------- Les aéroports où il fait bon attendre, voila un topic qu'il est bien |
el muchacho Comfortably Numb |
T'as un github quelque part ? Message édité par el muchacho le 07-12-2020 à 21:55:02 --------------- Les aéroports où il fait bon attendre, voila un topic qu'il est bien |
ratibus |
|
masklinn í dag viðrar vel til loftárása |
Message cité 1 fois Message édité par masklinn le 07-12-2020 à 22:58:30 --------------- 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? |
ratibus |
Message cité 1 fois Message édité par ratibus le 07-12-2020 à 23:16:53 |
masklinn í dag viðrar vel til loftárása |
Message cité 1 fois Message édité par masklinn le 07-12-2020 à 23:26:18 --------------- 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? |
ratibus |
--------------- Mon blog |
Jubijub Parce que je le VD bien | Il avait des grosses nuts Ayerton Senna quand meme
--------------- Jubi Photos : Flickr - 500px |
Publicité | Posté le 07-12-2020 à 23:29:19 ![]() ![]() |
Harkonnen ModérateurUn modo pour les bannir tous |
--------------- J'ai un string dans l'array (Paris Hilton) |
Flaie |
day 8, done Message cité 1 fois Message édité par Flaie le 08-12-2020 à 06:23:25 |
hephaestos Sanctis Recorda, Sanctis deus. |
|
el muchacho Comfortably Numb |
ratibus | Done aussi en 21 minutes (12 + 9) : https://github.com/ratibus/adventof [...] 020/day_08 --------------- Mon blog |
Flaie | Bravo, au final pas mal de dev y participent aussi |
ratibus |
|
Flaie |
Message édité par Flaie le 08-12-2020 à 09:32:10 |
el muchacho Comfortably Numb |
Ah et puis ensuite, dans le 2e exercice, j'ai eu des soucis parce que je ne faisais pas un deepcopy() de la liste des instructions ce qui faisait que les swap('jmp', 'nop') s'accumulaient au lieu qu'une seule soit changée à chaque fois. J'avais lu hier quelque part que a=b[:] faisait un deepcopy de a mais c'était faux, c'est du shallow copy. ah, et si masklinn passait par là, je suis curieux de savoir comment faire proprement un swap('jmp', 'nop') plutôt que ceci:
Message cité 3 fois Message édité par el muchacho le 08-12-2020 à 09:46:55 --------------- Les aéroports où il fait bon attendre, voila un topic qu'il est bien |
gatsu35 Blablaté par Harko |
|
el muchacho Comfortably Numb |
--------------- Les aéroports où il fait bon attendre, voila un topic qu'il est bien |
Flaie |
Message cité 1 fois Message édité par Flaie le 08-12-2020 à 10:01:17 |
el muchacho Comfortably Numb |
Message cité 1 fois Message édité par el muchacho le 08-12-2020 à 10:04:23 --------------- Les aéroports où il fait bon attendre, voila un topic qu'il est bien |
nraynaud lol | ohhh, un détecteur de cycles...
--------------- trainoo.com, c'est fini |
Flaie |
|
Jubijub Parce que je le VD bien |
--------------- Jubi Photos : Flickr - 500px |
Jubijub Parce que je le VD bien |
--------------- Jubi Photos : Flickr - 500px |
gfive |
--------------- Tous les sud africains sont ségrégationistes, à part Ted. (P. Desproges) |
Anonymouse | Salut
|
DDT Few understand |
nraynaud lol |
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? |
Anonymouse |
Message cité 2 fois Message édité par Anonymouse le 08-12-2020 à 11:02:42 |
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? |
Anonymouse |
Message cité 2 fois Message édité par Anonymouse le 08-12-2020 à 11:13:06 |
hephaestos Sanctis Recorda, Sanctis deus. |
En terme de complexité on ne gagne pas vraiment si je comprends ton algo, vu qu'il faut quand même exécuter le programme pour chaque switch. On peut le faire je pense en O(N), en n'exécutant le programme qu'une fois: on monte depuis le départ jusqu'à la boucle infinie et on mémorise acc montant pour chaque arrivée; Puis on fait pareil en partant de la fin (pour ça il faut avoir construit un graphe lors de la lecture des données d'entrée). Ensuite on boucle une dernière fois pour trouver un chemin qui, en swappant, permet d'aller du trajet montant au trajet descendant. J'ai perdu un peu de temps à essayer d'implémenter ça mais j'ai réalisé que la méthode bourrin marchait tout aussi bien... Message cité 2 fois Message édité par hephaestos le 08-12-2020 à 11:17:24 |
el muchacho Comfortably Numb |
--------------- Les aéroports où il fait bon attendre, voila un topic qu'il est bien |
gfive |
--------------- Tous les sud africains sont ségrégationistes, à part Ted. (P. Desproges) |
___alt | Marrant la ligne finale que j'ai pour trouver l'exécution qui se termine :
--------------- TRIPS RIGHT BUNCH F SHUTTLE TOM AND JERRY RIGHT YELLOW |
___alt |
--------------- TRIPS RIGHT BUNCH F SHUTTLE TOM AND JERRY RIGHT YELLOW |
Publicité | Posté le ![]() ![]() |

| Sujets relatifs | |
|---|---|
| Plus de sujets relatifs à : [blabla@olympe] Le topic du modo, dieu de la fibre et du monde |




