{"id":224,"date":"2022-05-10T11:36:46","date_gmt":"2022-05-10T09:36:46","guid":{"rendered":"https:\/\/yb-isn.fr\/2021\/nsi\/carla\/?p=224"},"modified":"2022-05-10T11:36:46","modified_gmt":"2022-05-10T09:36:46","slug":"algorithmes-gloutons","status":"publish","type":"post","link":"http:\/\/yb-isn.fr\/2021\/nsi\/carla\/?p=224","title":{"rendered":"algorithmes gloutons"},"content":{"rendered":"\n<p>pour 423 =[200,200,20,2,1]<\/p>\n\n\n<p>on donne un nombre \u00e0 la machine. Il rentre dans une premi\u00e8re boucle o\u00f9 on voit si il est plus grand que 500. Si il est plus grand, on ajoute 500 comme nombre \u00e0 la \u00ab\u00a0liste_pieces\u00a0\u00bb, et on retire 500 au nombre initial. Sinon on ajoute rien et la boucle continue avec tout les nombres de \u00ab\u00a0system_euro\u00a0\u00bb. On rends la liste pi\u00e8ce.<\/p>\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" width=\"648\" height=\"297\" src=\"https:\/\/yb-isn.fr\/2021\/nsi\/carla\/wp-content\/uploads\/sites\/5\/2022\/05\/image-5.png\" alt=\"\" class=\"wp-image-226\" srcset=\"http:\/\/yb-isn.fr\/2021\/nsi\/carla\/wp-content\/uploads\/sites\/5\/2022\/05\/image-5.png 648w, http:\/\/yb-isn.fr\/2021\/nsi\/carla\/wp-content\/uploads\/sites\/5\/2022\/05\/image-5-300x138.png 300w\" sizes=\"(max-width: 648px) 100vw, 648px\" \/><\/figure>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>pour 423 =[200,200,20,2,1] on donne un nombre \u00e0 la machine. Il rentre dans une premi\u00e8re boucle o\u00f9 on voit si il est plus grand que 500. Si il est plus grand, on ajoute 500 comme nombre \u00e0 la \u00ab\u00a0liste_pieces\u00a0\u00bb, et on retire 500 au nombre initial. Sinon on ajoute rien et la boucle continue avec&hellip; <a class=\"more-link\" href=\"http:\/\/yb-isn.fr\/2021\/nsi\/carla\/?p=224\">Poursuivre la lecture <span class=\"screen-reader-text\">algorithmes gloutons<\/span><\/a><\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"http:\/\/yb-isn.fr\/2021\/nsi\/carla\/index.php?rest_route=\/wp\/v2\/posts\/224"}],"collection":[{"href":"http:\/\/yb-isn.fr\/2021\/nsi\/carla\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/yb-isn.fr\/2021\/nsi\/carla\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/yb-isn.fr\/2021\/nsi\/carla\/index.php?rest_route=\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"http:\/\/yb-isn.fr\/2021\/nsi\/carla\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=224"}],"version-history":[{"count":1,"href":"http:\/\/yb-isn.fr\/2021\/nsi\/carla\/index.php?rest_route=\/wp\/v2\/posts\/224\/revisions"}],"predecessor-version":[{"id":227,"href":"http:\/\/yb-isn.fr\/2021\/nsi\/carla\/index.php?rest_route=\/wp\/v2\/posts\/224\/revisions\/227"}],"wp:attachment":[{"href":"http:\/\/yb-isn.fr\/2021\/nsi\/carla\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=224"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/yb-isn.fr\/2021\/nsi\/carla\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=224"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/yb-isn.fr\/2021\/nsi\/carla\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=224"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}