-->
当前位置:首页 > Eng > 正文内容

编程题:Integer set

Luz2年前 (2022-12-05)Eng477
Enter a positive integer a no more than 6 to get 4 consecutive numbers starting from a. (If you input 2, you will get 2, 3, 4, and 5.) Please output all the three digits of the non repeated number composed of them.

### Input Specification:
Input a integer.

### Output Specification:

Output the qualified 3-digit numbers from small to large, with 6 integers per line. Integers are separated by spaces, but no extra spaces are allowed at the end of the line.

### Sample Input #1:

in
2


### Sample Output #1:

Write the corresponding sample output here. For example:

out
234 235 243 245 253 254
324 325 342 345 352 354
423 425 432 435 452 453
523 524 532 534 542 543

### Sample Input #2:

in
6


### Sample Output #2:

Write the corresponding sample output here. For example:

out
678 679 687 689 697 698
768 769 786 789 796 798
867 869 876 879 896 897
967 968 976 978 986 987










answer:若无答案欢迎评论

发表评论

访客

◎欢迎参与讨论,请在这里发表您的看法和观点。