Skip to main content
We’ve updated our Terms of Service. A new AI Addendum clarifies how Stack Overflow utilizes AI interactions.
Code Golf

Return to Revisions

2 of 9
mistake WIP
Adám
  • 31.8k
  • 4
  • 131
  • 292

(削除) 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

AltStyle によって変換されたページ (->オリジナル) /