大理石在哪兒(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很容易完成這兩項操作,代碼如下:
相關文章
相關標籤/搜索