Header image for Alaoz

Alaoz

Prompt

You are being evaluated on your reasoning, coding, instruction-following, and ability to handle ambiguity. Do not use external tools unless explicitly allowed. Solve all 5 tasks. For each task, give the answer first, then a concise explanation of your reasoning. Do not skip any task. LOGIC: There are 100 prisoners and 100 boxes. Each box contains one unique prisoner's number, randomly arranged. Prisoners enter one at a time and may open at most 50 boxes. They cannot communicate after entering. If every prisoner finds their own number, they all survive; otherwise, they all die. What strategy gives them the best possible chance of success? Explain the strategy and why it works. Do not just give the probability. ADVERSARIAL REASONING: A farmer needs to transport a wolf, a goat, and a cabbage across a river. The boat can carry the farmer plus only one of the three at a time. If left alone together, the wolf eats the goat, and the goat eats the cabbage. Give the shortest valid sequence of crossings. Then explain why every step is safe. CODING: Write a single self-contained HTML file containing a playable Snake game using only HTML, CSS, and vanilla JavaScript. It must: work by opening the HTML file directly in a browser; support keyboard arrow keys and WASD; have increasing difficulty as the score rises; include collision detection; display the score and a game-over screen; have a restart button; use no external libraries or assets. After writing the code, inspect it for likely bugs and provide a corrected final version if necessary. CONSTRAINT FOLLOWING: Write exactly 120 words explaining why learning to program is useful. Rules: Exactly 120 words. Do not use the words "code", "coding", "program", "programming", or "software". The text must still clearly be about learning computer programming. Use exactly one rhetorical question. End with a sentence containing exactly 7 words. DEEP REASONING: You have €10,000 to allocate between three investments: A, B, and C. A has an expected return of 8% and a risk score of 2. B has an expected return of 12% and a risk score of 5. C has an expected return of 20% and a risk score of 10. You must invest at least €2,000 in each investment. Your total risk score is calculated as the weighted average risk score of your investments. Find an allocation that maximizes expected return subject to the condition that the weighted average risk score is no more than 6. Show your calculations and explain whether the solution is unique. IMPORTANT: Do not claim you completed a task if you did not. Check all numerical calculations and word counts carefully.

A system prompt was added to support web rendering

Drag to resize