1002: 487-3279

POJ doesn't support <unordered_map>, use <map> instead.
POJ must include<algorithm> when using sort()