tasks a-s
This commit is contained in:
parent
47bf37c096
commit
b83f433714
12433 changed files with 156208 additions and 123 deletions
10
Task/Roman-numerals-Encode/PicoLisp/roman-numerals-encode.l
Normal file
10
Task/Roman-numerals-Encode/PicoLisp/roman-numerals-encode.l
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
(de roman (N)
|
||||
(pack
|
||||
(make
|
||||
(mapc
|
||||
'((C D)
|
||||
(while (>= N D)
|
||||
(dec 'N D)
|
||||
(link C) ) )
|
||||
'(M CM D CD C XC L XL X IX V IV I)
|
||||
(1000 900 500 400 100 90 50 40 10 9 5 4 1) ) ) ) )
|
||||
Loading…
Add table
Add a link
Reference in a new issue