File tree Expand file tree Collapse file tree 1 file changed +1
-5
lines changed
Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -23,10 +23,6 @@ def times10(nstring):
2323 n1string += str (r )[0 ]
2424 if len (str (r )) > 1 :
2525 r = int (str (r )[1 :] + str (r )[0 ])
26- elif "." in times10 (n1string ):
27- n1string = times10 (n1string )+ str (r )[0 ]
28- if len (str (r )) > 1 :
29- r = int (str (r )[1 :] + str (r )[0 ])
3026 else :
3127 n1string = times10 (n1string )
3228 n2string = times10 (n2string )
@@ -70,7 +66,7 @@ def times10(nstring):
7066 if result [result .index ("[" ) - 1 ]== result [result .index ("]" ) - 1 ]:
7167 result = result [:result .index ("[" ) - 1 ] + "[" + result [result .index ("[" ) - 1 ] + result [result .index ("[" ) + 1 :result .index ("]" ) - 1 ] + "]"
7268 if result .index ("]" )== result .index ("[" ) + 3 and result [result .index ("[" ) + 1 ]== result [result .index ("[" ) + 2 ]:
73- result = result [:result .index ("[" ) + 1 ] + result [ result . index ( "[" ) + 2 :]
69+ result = result [:result .index ("[" ) + 1 ] + "]"
7470 return result .replace ("[" , rstr1 ).replace ("]" , rstr2 )
7571 x += 1
7672 res += str ((int (times10 (str (carry ))) + int (n1s [i ])) // n2 )
You can’t perform that action at this time.
0 commit comments