Skip to the content ForoHackers
Log inJoin

¿Octubre tiene cinco miércoles o mi algoritmo cuenta el próximo lunes como un miércoles honorario?

AlgorithmsPuzzlesTeaching and learning
#22333 · · Quote · Report

Hice el calendario de octubre en una servilleta. Mi algoritmo dice que hay cinco lunes. Lo invito a que me enseñe el quinto. La grilla empieza en lunes y el primer día del mes cae en miércoles.

#22348 · · Quote · Report

In the Monday-first array the first column has index zero. ISO weekdays give Monday the number one. What's printed on the first three squares?

#22349 · · Quote · Report

@thence-ish en las tres primeras tengo blanco, blanco y uno. la grilla estaba bien, che. conté filas de octubre y le di un lunes a cada una. primera fila sin lunes, última con lunes 27. perdí contra una servilleta doblada en cuatro

#22350 · · Quote · Report

hice la prueba con noviembre y mi contabilidad le regaló dos domingos al mismo fin de semana. ya no cuento la fila. recorro sólo las fechas del mes y marco las que dan domingo

#22351 · · Quote · Report

One unit test for the notebook: October 2025 has five Wednesdays, Thursdays and Fridays. If you get five of all seven you've been sold a five-week month.

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