Here is a (not very good) procedure for converting words to numbers:
Case insensitive.
Delete all letters from the word which are not valid Roman Numeral characters.
Read the remaining characters, in order, as a Roman Numeral.
If the resultant set of characters is the empty set, the value is 0.
If the resultant set of characters is not a valid Roman Numeral, the value is undefined.
If the resultant set of characters is a valid Roman Numeral, the value is the decimal equivalent of the Roman Numeral.
Find the matching words based on the decimal value and a clue.
Example:
190 Helps with a will
190 = CXC [answer = coexecutor];
1) 21 Some microorganisms make
2) 45 Socrates called. He wants his life back.
3) 96 Who moved my coal?
4) 141 Don't throw away the cane.
5) 161 This medicine stopped working.
6) 255 Agent 86's cone of silence, for example.
7) 260 Boils between 80 and 81 degrees Celsius
8) 310 What Napoleon Dynamite's grandma broke
9) 911 Some microorganisms can
10) 960 A type of number
11) 1110 Fireholder or tiny car
12) 1300 Might make you cough
13) 1552 A politician does what?
14) 3051 Has a subcellular unit of 80S size, not 70S
Getting the roman numerals:
1) 21 XXI Some microorganisms make
2) 45 XLV Socrates called. He wants his life back.
3) 96 XCVI Who moved my coal?
4) 141 CXLI Don't throw away the cane.
5) 161 CLXI This medicine stopped working.
6) 255 CCLV Agent 86's cone of silence, for example.
7) 260 CCLX Boils between 80 and 81 degrees Celsius
8) 310 CCCX What Napoleon Dynamite's grandma broke
9) 911 CMXI Some microorganisms can
10) 960 CMLX A type of number
11) 1110 MCX Fireholder or tiny car
12) 1300 MCCC Might make you cough
13) 1552 MDLII A politician does what?
14) 3051 MMMLI Has a subcellular unit of 80S size, not 70S
Not much comes to mind:
1) eXotoXIn ?
2)
3) eXCaVatIon ?
4)
5)
6)
7)
8) CoCCyX
9)
10) CoMpLeX
11)
12)
13)
14)
Computer solution:
nums=[21
45
96
141
161
255
260
310
911
960
1110
1300
1552
3051];
romans=lower(num2roman(nums));
for i=1:length(nums)
fprintf('%5d %5d %s\n',i,nums(i),num2roman(nums(i)));
end
fid=fopen("c:\words\words.txt","r");
while ~feof(fid)
w=fgetl(fid);
x=extract(w,("i"|"v"|"x"|"l"|"c"|"d"|"m"));
if length(x)>0
x=strcat(x{:});
if ismember(x,romans)
fprintf('%5d %s\n',roman2num(x),w)
end
end
end
finds
141 carboxylating
141 carboxylation
141 carboxylations
161 catalexis
161 cataplexies
161 cephalexin
161 cephalexins
960 chemoprophylaxes
911 chemotaxis
310 coccyx
310 coccyxes
960 complex
960 complexer
960 complexes
960 complexest
960 complexness
960 complexnesses
255 conclave
255 conclaves
141 contextualize
141 contextualizes
141 coxalgia
141 coxalgias
141 coxalgies
260 cyclohexane
260 cyclohexanes
260 cyclohexanone
260 cyclohexanones
96 excavating
96 excavation
96 excavations
21 exotoxin
21 exotoxins
45 foxglove
45 foxgloves
161 hypercatalexis
960 hypercomplex
3051 mammalian
3051 mammalians
3051 mammalogies
3051 mammalogist
3051 mammalogists
1552 mandolinist
1552 mandolinists
1110 matchbox
1110 matchboxes
1552 modalities
1552 modularities
1110 morceaux
1552 mudslinging
1552 mudslingings
960 noncomplex
1300 pneumococcus
141 psychosexuality
141 recontextualize
141 recontextualizes
21 xeroxing
1110 Herstmonceux
1110 Hurstmonceux
from which can be chosen:
1) 21 XXI Some microorganisms make
eXotoXIns
2) 45 XLV Socrates called. He wants his life back.
foXgLoVe
3) 96 XCVI Who moved my coal?
eXCaVations
4) 141 CXLI Don't throw away the cane.
CoXaLgIa
5) 161 CLXI This medicine stopped working.
CephaLeXIn
6) 255 CCLV Agent 86's cone of silence, for example.
ConCLaVe
7) 260 CCLX Boils between 80 and 81 degrees Celsius
CyCLoheXane or CyCLoheXanone
8) 310 CCCX What Napoleon Dynamite's grandma broke
CoCCyX
9) 911 CMXI Some microorganisms can
CheMotaXIs
10) 960 CMLX A type of number
CoMpLeX
11) 1110 MCX Fireholder or tiny car
MatChboX
12) 1300 MCCC Might make you cough
pneuMoCoCCus
13) 1552 MDLII A politician does what?
MuDsLIngIng
14) 3051 MMMLI Has a subcellular unit of 80S size, not 70S
MaMMaLIan
For #13: politicians also like 1602 (plural of 1601).
|
Posted by Charlie
on 2023-04-12 14:09:08 |