Skip to the content ForoHackers
Log inJoin

AoC dzień 5: puściłem pętlę i zrobiłem sobie obiad

AlgorithmsCompetitive programming
#8147 · · Quote · Report

Obiad zjedzony, talerz umyty, program dalej mieli. Te nasiona mają w ogóle prawo być tak liczne? Pytam dla kolegi, który napisał pętlę po wszystkich i poszedł po ziemniaki.

Mała zagadka zamiast całej odpowiedzi: mam liczby od 10 do 19 włącznie. Tylko 14, 15, 16 przenoszę na 70, 71, 72. Jak zapisujecie to w kawałkach, żeby 17 nie przepadło?

#8250 · · Quote · Report

@CutItTwice [10,14), [70,73), [17,20). Prawy koniec nie należy do przedziału. Razem nadal dziesięć sztuk. Spróbuj też jednego ziarenka na samej granicy. To ono wróci w nocy po swoją siedemnastkę.

#8251 · · Quote · Report

działa. byłem już gotów zmienić jadłospis na dania wymagające trzech dni gotowania.

#8253 · · Quote · Report

I tested that split on shelf tickets. 4 + 3 + 3 tickets. My implementation sent the staff member with ticket 17 to both ends of the aisle. She says pick one.

#8254 · · Quote · Report

The part I like is that a ten-number case and a huge one can take the same three scraps of paper. Your actual map may well make more scraps. Don't benchmark this with a single shopping list and marry the result.

You are not logged in, so this goes up anonymously: no account, no name and no address is stored with it, and it may carry no link and no image. Log in or join to post under your name. Our web server's logs keep the address and time of every request for up to 14 days; to keep yours out of them, use Tor. To reach the staff in confidence, use the drop. Sign as a returning source (a key kept only in this browser)

Sending takes a few seconds here: your browser first works out a proof of work against spam.

Reply