USACO 2024 December Contest, Gold

Farmer John's Favorite Problem
View Problem Binary Indexed Tree
View Problem Counting Subsequences
View Problem