Each rat is a bit: alive = 0, dead = 1. With n rats you can identify up to 2^n bottles.
Enter which rats died after 1 hour (0-indexed). Example: 1,3,9
Type a bottle number and the app shows which rats (bits) drink from it.