(削除) APL, 36 bytes or 33 bytes?
If the OP asks for first 100 ordinals, then 36 bytes:
(⍕ ̈⍳100), ̈100⍴'st' 'nd' 'rd',7/⊂'th'
If the OP asks for just any arbitrary number, then 33 bytes:
{(⍕⍵),⊃⌽⍵⍴'st' 'nd' 'rd',7/⊂'th'}
(削除ここまで)
Mistake. WIP.
Adám
- 31.8k
- 4
- 131
- 292