Rosetta Problems

三元组的最小距离

https://www.acwing.com/problem/content/3877