精品偷拍一区二区三区,亚洲精品永久 码,亚洲综合日韩精品欧美国产,亚洲国产日韩a在线亚洲

  • <center id="usuqs"></center>
  • 
    
  • 英語翻譯

    英語翻譯
    Description« acmnew » is a system which allows to create programming tasks in a simple and professional way.When you add a test to the problem,the corresponding form asks you for the test index.As in most cases it is clear which index the next test will have,the system suggests the default value of the index.It is calculated as the smallest positive integer which is not used as an index for some previously added test.You are to implement this feature.Create a program which determines the default index of the next test,given the indexes of the previously added tests.
    Input
    The first line contains one integer n (1 ≤ n ≤ 100000) — the amount of previously added tests.The second line contains n distinct integers a1, a2, ..., an (1 ≤ ai ≤ 100000) — indexes of these tests.
    Output
    Output the required default value for the next test index.
    Sample Input
    31 7 2
    Sample Output
    3HINT
    其他人氣:546 ℃時(shí)間:2020-09-29 17:26:40
    優(yōu)質(zhì)解答
    描述acmnew»是一個(gè)系統(tǒng)的«允許創(chuàng)建編程任務(wù)在一個(gè)簡單的和專業(yè)的方式.當(dāng)你添加一個(gè)測(cè)試的問題,相應(yīng)的形式問你的試驗(yàn)指標(biāo).在大多數(shù)情況下,它是明確的,指數(shù)下一個(gè)測(cè)試將有,系統(tǒng)顯示默認(rèn)值的指數(shù).它通過計(jì)算最小的正整數(shù)而不是作為一個(gè)索引對(duì)于一些先前添加的測(cè)試.你是來實(shí)現(xiàn)這個(gè)功能.創(chuàng)建一個(gè)計(jì)劃,決定默認(rèn)索引的下一次測(cè)試,考慮到先前添加的測(cè)試指標(biāo).InputThe第一行包含一個(gè)整數(shù)n(1≤n≤100000)——先前添加的測(cè)試的數(shù)量.第二行包含n個(gè)不同的整數(shù)a1,a2,……,一個(gè)(1≤≤100000 ai)——這些測(cè)試的指標(biāo).OutputOutput所需的默認(rèn)值為下一個(gè)試驗(yàn)指標(biāo).示例輸入
    我來回答
    類似推薦
    請(qǐng)使用1024x768 IE6.0或更高版本瀏覽器瀏覽本站點(diǎn),以保證最佳閱讀效果。本頁提供作業(yè)小助手,一起搜作業(yè)以及作業(yè)好幫手最新版!
    版權(quán)所有 CopyRight © 2012-2024 作業(yè)小助手 All Rights Reserved. 手機(jī)版