Here is the problem statement
http://www.spoj.com/problems/ACPC11B/
This task is a very simple task. The constraints are enough to write a simple brute force solution and get accepted. Just loop over both of arrays , calculate the distance between every pair and update the answer.
http://www.spoj.com/problems/ACPC11B/
This task is a very simple task. The constraints are enough to write a simple brute force solution and get accepted. Just loop over both of arrays , calculate the distance between every pair and update the answer.
No comments:
Post a Comment