-->
当前位置:首页 > 题库

PROGRAMMING:Three figures

Luz5年前 (2021-05-10)题库456
###Task description
```
How many three digit numbers can be made up of 1, 2, 3 and 4? How much is it? This is not too difficult. Now I ask you to count N numbers from 1 to n (3 < = n < = 9). How many three digit numbers can be made up of different numbers without repetition? How much is it?
```
###Input format:
```
A 1-bit integer not less than 3
```
###Output format:
```
Output all possible three digit numbers from small to large, every 10 numbers occupy one line, and then output these three digit numbers on the next line of all output results.
```
###Input example:
```in
three
```
###Output example:
```out
123 132 213 231 312 321
six
```
###Input example:
```in
six
```
###Output example:
```out
123 124 125 126 132 134 135 136 142 143
145 146 152 153 154 156 162 163 164 165
213 214 215 216 231 234 235 236 241 243
245 246 251 253 254 256 261 263 264 265
312 314 315 316 321 324 325 326 341 342
345 346 351 352 354 356 361 362 364 365
412 413 415 416 421 423 425 426 431 432
435 436 451 452 453 456 461 462 463 465
512 513 514 516 521 523 524 526 531 532
534 536 541 542 543 546 561 562 563 564
612 613 614 615 621 623 624 625 631 632
634 635 641 642 643 645 651 652 653 654
one hundred and twenty
```







answer:If there is no answer, please comment