Cycle-03. An integer set that matches a given condition

Source: Internet
Author: User
Cycle-03. The set of integers (15) that meet the given criteria the time limit of MS memory limit 65536 KB code length limit 8000 B program standard author Xu Jianchun (Zhejiang University)

Given a positive integer of not more than 6, consider a continuous 4 digits starting with a. Please output all 3 digits of the non-repeating number made up of them.

Input format:

The input gives a in a row.

Output format:

Outputs a 3-digit number that meets the criteria, requiring 6 integers per line from small to large. Integers are separated by spaces, but there is no extra space at the end of the line.

Input Sample:
2
Sample output:
234 235 243 245 253 254324 325 342 345 352 354423 425 432 435 452 453523 524 532 534 542 543

Cycle-03. An integer set that matches a given condition

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.