Dropped Tarots
This problem was initially used in Selection 2 of the Malaysian IOAI Training and Selection Programme, and has been slightly modified for distribution.
This problem was originally designed to be solved within 2hrs, and was graded completely by hand. Use of all LLM assistance including reasoning models were allowed.
Preview
Oops! I dropped some tarot cards into a box of pixels. Can you help me retrieve them?

Download
Right click this link and select “save as”: maio2025_dropped_tarots_public.ipynb
Editorial
To be updated!
Citation
You are welcome to publish your own solutions to this problem! Please use the provided citation below:
@misc{maio2025_letter_footprint,
title = {Dropped Tarots},
author = {Tan, Nian Wei},
year = {2025},
howpublished = {Blog},
url = {https://aiolympiad.my/past-problems/maio2025_dropped_tarots},
}