Codeforces Round #519 by Botan Investments F. Make It One (组合数学+dp)

NoSuchKey