Two gold mines

Problem Name:
Two gold mines
Site:HackerEarth
Links:
Tags:
Problem setters: