浙江大学软件学院2020年保研真题Distance of Triples (25 分)
时间限制:300 ms 内存限制:64 MBThe distance of triples (三元组) (a,b,c) is defined as D(a,b,c)=∣a−b∣+∣b−c∣+∣c−a∣. Now given three non-empty integer sets S1, S2 and S3, you are supposed to find the minimum distance of all the possible triples (a,b,c) where a∈S1, b∈S2
原创
2021-09-07 18:21:55 ·
474 阅读 ·
0 评论