@anonymous/

DopeyLoathsomeAntipodesgreenparakeet

Python 2.7

No description

fork
loading
Files
  • main.py
main.py
1
2
3
4
5
def f(x,s=zip("M CM D CD C XC L XL X IX V IV I".split(),[1e3,900,500,400,100,90,50,40,10,9,5,4,1])):
 r=""if x<4e3else"("+f(x/1e3)+")";x%=1e3
 for a,b in s:
	while x>=b:r+=a;x-=b
 return r