1008:ASCII code "Java algorithm"

Source: Internet
Author: User

Title Description

I believe everyone must know the famous ASCII code, this time to your task is to enter a number (representing the ASCII code), the output of the corresponding character information.

Input format

The first behavior is an integer T (1<=t<=1000).
Next consists of a T-positive integer, separated by a whitespace character. (whitespace characters include spaces, line breaks, tab characters)
These integers are not less than 32.

Output

Outputs the corresponding character information in a row. (Be careful not to output any extra characters)

Sample input

13
72 101 108 108 111 44
32 119 111 114 108 100 33

Sample output

Hello, world!.

Import java.util.*;p ublic class main{public static void Main (string[] args) {       Scanner cin = new Scanner (system.in); 
   while (Cin.hasnext ()) {         int n=cin.nextint ();         String s= "";         for (int i=0;i<n;i++) s+= (char) cin.nextint ();         System.out.println (s);}}       }


1008:ASCII code "Java algorithm"

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.