• <input id="auww4"></input>
  • <input id="auww4"><acronym id="auww4"></acronym></input>
  • <input id="auww4"><u id="auww4"></u></input>
    <object id="auww4"><acronym id="auww4"></acronym></object>
    <menu id="auww4"></menu><input id="auww4"><u id="auww4"></u></input>
    <input id="auww4"><u id="auww4"></u></input>
  • F.A.Q
    Hand In Hand
    Online Acmers
    Forum | Discuss
    Statistical Charts
    Problem Archive
    Realtime Judge Status
    Authors Ranklist
     
         C/C++/Java Exams     
    ACM Steps
    Go to Job
    Contest LiveCast
    ICPC@China
    Best Coder beta
    VIP | STD Contests
    Virtual Contests
        DIY | Web-DIY beta
    Recent Contests
    Author ID 
    Password 
     Register new ID

    數據的交換輸出

    Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others)
    Total Submission(s): 180022    Accepted Submission(s): 66279


    Problem Description
    輸入n(n<100)個數,找出其中最小的數,將它與最前面的數交換后輸出這些數。
     

    Input
    輸入數據有多組,每組占一行,每行的開始是一個整數n,表示這個測試實例的數值的個數,跟著就是n個整數。n=0表示輸入的結束,不做處理。
     

    Output
    對于每組輸入數據,輸出交換后的數列,每組輸出占一行。
     

    Sample Input
    4 2 1 3 4 5 5 4 3 2 1 0
     

    Sample Output
    1 2 3 4 1 4 3 2 5
     

    Author
    lcy
     

    Source
     

    Recommend
    lcy
     

    Statistic | Submit | Discuss | Note
    Hangzhou Dianzi University Online Judge 3.0
    Copyright © 2005-2020 HDU ACM Team. All Rights Reserved.
    Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
    Total 0.000000(s) query 2, Server time : 2020-11-09 02:33:56, Gzip enabled
    棋牌