Aggressive cows

Problem Name:
Aggressive cows
Site:Spoj
Links:
Tags:
Problem setters: