A. Neverending competitions time limit per test:2 seconds memory limit per test:512 megabytes input:standard input output:standard output There are literally dozens of snooker competitions held each year, and team Jinotega tries to attend them all (f…