G. Raffles

G. Raffles time limit per test ۵ seconds memory limit per test ۲۵۶ megabytes input standard input output standard output Johnny is at a carnival which has n raffles. Raffle […]

B. Cards

B. Cards time limit per test ۲ seconds memory limit per test ۲۵۶ megabytes input standard input output standard output Catherine has a deck of n cards, each of which […]

Three Servers

time limit per test ۵ seconds memory limit per test ۲۵۶ mebibytes input standard input output standard output There are three identical servers and n requests to process. The time […]