Upsolving Codeforces Round #680 (virtual) (finished)