CF 1973A - Chess For Three

Codeforces 1973A: Chess For Three

CF 1973A - Chess For Three

Rating: 900
Tags: brute force, dp, implementation, math
Solve time: 5m 14s
Verified: no

Solution