diff --git a/main.py b/main.py new file mode 100644 index 0000000..3fd7523 --- /dev/null +++ b/main.py @@ -0,0 +1,11 @@ +import sys +b=1000 +c=500 +d=100 +e=50 +def a(): + p = open(sys.argv[1]) + for l in p: + a=int(l) + print(f"{a//b*'M'}{a%b//c*'D'}{a%b%c//d*'C'}{a%b%c%d//e*'L'}{a%b%c%d%e//10*'X'}{a%b%c%d%e%10//5*'V'}{a%b%c%d%e%10%5*'I'}") +a() \ No newline at end of file