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

PROGRAMMING:Abbreviation of ordinal number

Luz5年前 (2021-05-10)题库411
In English, the abbreviations of ordinal numbers are shown in the following table:

























































































































1st2nd3rd4th5th6th7th8th9th10th
11th12th13th14th15th16th17th18th19th20th
21st22nd23rd24th25th26th27th28th29th30th
31st32nd33rd34th35th36th37th38th39th40th
41st42nd43rd44th45th46th47th48th49th50th
51st52nd53rd54th55th56th57th58th59th60th
61st62nd63rd64th65th66th67th68th69th70th
71st72nd73rd74th75th76th77th78th79th80th
81st82nd83rd84th85th86th87th88th89th90th
91st92nd93rd94th95th96th97th98th99th100th

Please find out the rules and write programs to solve this problem.
First enter a positive integer $$n $, and then enter $$n $$positive integers $$a_ 1, a_ 2, \cdots, a_ N $$, the final output of $$n $$corresponding ordinal abbreviations, abbreviations between a space, there is no extra space at the end of the line.
####Input format
> $$n$$
> $$a_ 1, a_ 2, \cdots, a_ n$$
####Output format
>The abbreviation of $$n $$ordinal
####Input sample
```in
four
71 412 1043 53618
```
####Output sample
```out
71st 412th 1043rd 53618th
```







answer:If there is no answer, please comment