Skip to main content

Timeline for Five Hundred Cigarettes

Current License: CC BY-SA 4.0

30 events
when toggle format what by license comment
Oct 20 at 21:43 answer added Xcali timeline score: 3
Oct 16 at 12:36 answer added ojdo timeline score: 1
Oct 15 at 5:41 answer added hakr14 timeline score: 2
Mar 31 at 11:55 answer added Themoonisacheese timeline score: 1
Sep 28, 2024 at 18:00 comment added ConnieMnemonic @Hearth The sample is correct. Apex alignment was in reference to incomplete layers, which turned out not to be relevant ultimately.
Sep 28, 2024 at 1:09 answer added typecasto timeline score: 3
Sep 27, 2024 at 16:08 comment added Hearth You say left-aligned, but the output sample is right-aligned. I assume the sample is correct?
Sep 27, 2024 at 11:20 answer added Kjetil S timeline score: 2
Sep 27, 2024 at 7:55 answer added Kevin Cruijssen timeline score: 1
Sep 27, 2024 at 1:28 answer added Antonio Ponce timeline score: 2
Sep 26, 2024 at 21:52 comment added ConnieMnemonic Yeah, in all honesty, I didn't expect the maths would shake out so that you'd end on a finished layer. So the point is largely moot.
Sep 26, 2024 at 21:44 comment added l4m2 I asked case 4 as \$\begin{matrix}&o&\\o&o&o\end{matrix}\$ or \$\begin{matrix}&&o\\o&o&o\end{matrix}\$, but it seems either are good when n=500
Sep 26, 2024 at 21:25 answer added Neil timeline score: 3
Sep 26, 2024 at 21:24 history became hot network question
Sep 26, 2024 at 20:46 answer added Arnauld timeline score: 3
Sep 26, 2024 at 20:34 answer added Jonathan Allan timeline score: 7
Sep 26, 2024 at 16:47 answer added pacman256 timeline score: 5
Sep 26, 2024 at 15:19 history edited ConnieMnemonic CC BY-SA 4.0
edited body
Sep 26, 2024 at 15:11 history edited ConnieMnemonic CC BY-SA 4.0
Added target output
Sep 26, 2024 at 15:02 answer added Themoonisacheese timeline score: 7
Sep 26, 2024 at 14:46 comment added ConnieMnemonic @Themoonisacheese Deleted my previous comment because I was, in fact, completely wrong lmao. That's super helpful, thanks for posting!
Sep 26, 2024 at 14:44 comment added Themoonisacheese @ConnieMnemonic: i've just done the maths and it seems a truncated triangle with a base 32 is the minimum. 31 gives you an extra 4 that can't meet the spec, 32 gives you the base of a triangle exactly 29 complete layers tall, with the remaining 7 layers removed. the apex layer will be 8 cigarettes wide, exactly enough to complete that layer.
Sep 26, 2024 at 14:34 comment added ConnieMnemonic @bigyihsuan I sadly can't provide one at the moment; in the office rn then away from a machine for a while. Once someone's got a solve I'll paste it into the question though. :)
Sep 26, 2024 at 14:32 comment added Themoonisacheese @bigyihsuan: according to the spec, it's more correct to use a 32-size truncated triangle, because the spec requires there to be only one pile.
Sep 26, 2024 at 14:05 comment added bigyihsuan May be helpful: the closest triangular number to 500 is 496, so the highest pile probably looks like a triangle 31 layers tall with 4 extra cigarettes off to the side.
Sep 26, 2024 at 13:49 history edited ConnieMnemonic CC BY-SA 4.0
Apex alignment clarification
Sep 26, 2024 at 13:47 review Close votes
Sep 27, 2024 at 1:40
Sep 26, 2024 at 13:37 history edited ConnieMnemonic CC BY-SA 4.0
added 24 characters in body
S Sep 26, 2024 at 13:24 review First questions
Sep 26, 2024 at 16:53
S Sep 26, 2024 at 13:24 history asked ConnieMnemonic CC BY-SA 4.0