Questions tagged [roman-numerals]
This tag indicates that the challenge involves Roman numerals
33 questions
4
votes
3
answers
1k
views
Multiply the input by 2
Your goal is to write a program which will take an input and multiply it by 2. However, there are some catches.
You will get an input in one of a few forms:
A number (...
8
votes
18
answers
2k
views
Output five hundred different valid Roman numerals [closed]
Output any 500 different valid Roman numerals in the range 1 to 3999, in uppercase. Code golf.
8
votes
3
answers
497
views
Relaxing Romans
The Roman numeral for 499 is usually given as CDXCIX which breaks down as CD + XC + IX = 400 + 90 + 9 where numerals like ...
11
votes
3
answers
689
views
Write the date in abbreviated Latin
Inspired by How do you write dates in Latin?
Challenge
Given a month-and-day date, output that date in abbreviated Latin, as explained below.
Input
Input is flexible, following conventions from other ...
-3
votes
7
answers
1k
views
Straight pen strokes for Prime Numbers
Challenge
You are supposed to output the series I recently designed which goes as follows which are pen stroke counts of ascending prime numbers:
...
14
votes
4
answers
555
views
Not-Roman-Numeral Addition
Write the shortest program or function that mimics the addition in this XKCD strip:
Input
Two positive decimal integers containing only the digits 150.
Output
The ...
19
votes
9
answers
2k
views
ro1000an nu1000era50 en100o501ng
In the hovertext of this xkcd:
There's an "encoding" based on replacing runs of roman numerals with their sums. To do this:
Find all runs of at least 1 roman numeral (...
19
votes
19
answers
4k
views
How long is it in Roman
Or Fix American Kennel Club's database
As covered by the recent video by Matt Parker, the American Kennel Club permits thirty-seven (37) dogs of each breed to be assigned the same name (source), ...
12
votes
4
answers
407
views
Find an autogram using roman numerals
This task builds on: Find all reflexicons using roman numerals
An autogram is a sentence that lists the count of its own letters. Below is one of the first documented autograms found by Lee Sallows in ...
13
votes
6
answers
516
views
Find all reflexicons using roman numerals
A reflexicon is a self-descriptive word list that describes its own letter counts. Take for example the one found by Ed Miller in 1985 in English:
Sixteen e’s, six f’s, one g, three h’s, nine i’s, ...
22
votes
12
answers
2k
views
Roman Numeral-like Code Generator
Background
Roman numeral is a simple number system with the following properties:
Each symbol in the system maps to a specific value. (e.g. ...
16
votes
6
answers
1k
views
Roman Numeral Counting
Roman numerals can be (mostly) written in a one column format, because each letter intersects the top and the bottom of the line. For example: I, or 1 intersects ...
19
votes
15
answers
4k
views
Match Roman Numerals
Challenge
Given some input string, return a truthy value if it represents a correct roman numeral between 1 (=I) and 3999 (=...
20
votes
4
answers
2k
views
When in Rome, Count as Romans do?
Background
This challenge is inspired by this website, which published the following diagram:
This diagram shows us that the longest Roman Numeral expression under 250 is that of 188, which requires ...
30
votes
29
answers
5k
views
Those Greedy Romans!
Given a strictly positive integer, return the shortest possible Roman numeral using only the additive rule. Output must consist of zero or more of each of the characters ...