USACO——Paired Up
Paired UpFarmer John finds that his cows are each easier to milk when they have another cow nearby for moral support. He therefore wants to take his M cows (M≤1,000,000,000) and partition the