Nyoj Topic 1080 Age Sort

Source: Internet
Author: User

--------------------------

The barrel is not enough, I have no way ...

1 ImportJava.io.BufferedReader;2 Importjava.io.IOException;3 ImportJava.io.InputStreamReader;4 5  Public classmain{6 7      Public Static voidMain (string[] args)throwsNumberFormatException, IOException {8         9BufferedReader reader=NewBufferedReader (NewInputStreamReader (system.in));Ten          One         intn=Integer.parseint (Reader.readline ()); A         intbook[]=New int[151]; -String Ss[]=reader.readline (). Split (""); -          for(inti=0;i<n;i++) Book[integer.parseint (Ss[i])]++; the          -StringBuilder sb=NewStringBuilder (); -          for(inti=0;i<book.length;i++){ -              while(book[i]-->0) Sb.append (i). Append (""); +         } -          + System.out.println (sb.tostring ()); A     } at      -}

Title Source: http://acm.nyist.net/JudgeOnline/problem.php?pid=1080

Nyoj Topic 1080 Age Sort

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.