大理石在哪儿(Where is the marble?,UVa 10474)

样例输入: 4 1 2 3 5 1 5 5 2 1 3 3 3 1 2 3 样例输入: CASE# 1: 5 found at 4 CASE# 2: 2 not found 3 found at 3 分析: 题目意思已经很清晰了:先排序,在查找。使用algorithm头文件中的sort和lower_bound很容易完成这两项操作,代码如下:
相关文章
相关标签/搜索