def main(): log_whitelist([(inspect.getfile(Factor), 'factor_fastest')]) print("<div style=\"border:1px solid black;\">", end="\n\n") print("`{bm-disable-all}`", end="\n\n") try: args = input().split() # read from stdin input1 = WholeNumber.from_str(args[0]) res = factor_fastest(input1) # this will output markdown to stdout finally: print("</div>", end="\n\n") print("`{bm-enable-all}`", end="\n\n")
def main(): log_whitelist([(inspect.getfile(FractionNumber), 'reciprocal')]) print("<div style=\"border:1px solid black;\">", end="\n\n") print("`{bm-disable-all}`", end="\n\n") try: args = input().split() # read from stdin input1 = FractionNumber.from_str(args[0]) res = input1.reciprocal() # this will output markdown to stdout finally: print("</div>", end="\n\n") print("`{bm-enable-all}`", end="\n\n")
def main(): log_whitelist([(inspect.getfile(IntegerNumber), '__lt__')]) print("<div style=\"border:1px solid black;\">", end="\n\n") print("`{bm-disable-all}`", end="\n\n") try: args = input().split() # read from stdin input1 = IntegerNumber.from_str(args[0]) input2 = IntegerNumber.from_str(args[1]) res = input1 < input2 # this will output markdown to stdout finally: print("</div>", end="\n\n") print("`{bm-enable-all}`", end="\n\n")
def main(): log_whitelist([(inspect.getfile(GreatestCommonDivisor), 'gcd_naive')]) print("<div style=\"border:1px solid black;\">", end="\n\n") print("`{bm-disable-all}`", end="\n\n") try: args = input().split() # read from stdin input1 = WholeNumber.from_str(args[0]) input2 = WholeNumber.from_str(args[1]) res = gcd_naive(input1, input2) # this will output markdown to stdout finally: print("</div>", end="\n\n") print("`{bm-enable-all}`", end="\n\n")
def main(): log_whitelist([(inspect.getfile(DecimalNumber), '_choose_start_num_for_divte')]) print("<div style=\"border:1px solid black;\">", end="\n\n") print("`{bm-disable-all}`", end="\n\n") try: args = input().split() # read from stdin input1 = DecimalNumber.from_str(args[0]) input2 = DecimalNumber.from_str(args[1]) res = DecimalNumber.choose_starting_test_num_for_divte(input1, input2) # this will output markdown to stdout finally: print("</div>", end="\n\n") print("`{bm-enable-all}`", end="\n\n")
def main(): log_whitelist([(inspect.getfile(CommonDivisibilityTest), 'common_divisibility_test')]) print("<div style=\"border:1px solid black;\">", end="\n\n") print("`{bm-disable-all}`", end="\n\n") try: args = input().split() # read from stdin input1 = WholeNumber.from_str(args[0]) res = common_divisibility_test(input1) finally: print("</div>", end="\n\n") print("`{bm-enable-all}`", end="\n\n")
def main(): log_whitelist([(inspect.getfile(WholeNumber), 'trial_and_error_div')]) print("<div style=\"border:1px solid black;\">", end="\n\n") print("`{bm-disable-all}`", end="\n\n") try: args = input().split() # read from stdin input1 = WholeNumber.from_str(args[0]) input2 = WholeNumber.from_str(args[1]) res = WholeNumber.trial_and_error_div(input1, input2) # this will output markdown to stdout finally: print("</div>", end="\n\n") print("`{bm-enable-all}`", end="\n\n")
def main(): log_whitelist([(inspect.getfile(LeastCommonMultiple), 'lcm_prime_factorize')]) print("<div style=\"border:1px solid black;\">", end="\n\n") print("`{bm-disable-all}`", end="\n\n") try: args = input().split() # read from stdin input1 = WholeNumber.from_str(args[0]) input2 = WholeNumber.from_str(args[1]) res = lcm_prime_factorize( input1, input2) # this will output markdown to stdout finally: print("</div>", end="\n\n") print("`{bm-enable-all}`", end="\n\n")
# print(f'{DecimalNumber.from_str("-27.1") / DecimalNumber.from_str("2.5")}') # print(f'{DecimalNumber.from_str("2.71") / DecimalNumber.from_str("-2.5")}') # print(f'{DecimalNumber.from_str("-271") / DecimalNumber.from_str("0.25")}') # print(f'{DecimalNumber.from_str("0") / DecimalNumber.from_str("-25")}') # # print(f'{DecimalNumber.from_str("271") / DecimalNumber.from_str("25")}') # print(f'{DecimalNumber.from_str("271") / DecimalNumber.from_str("2.5")}') # print(f'{DecimalNumber.from_str("27.1") / DecimalNumber.from_str("2.5")}') # print(f'{DecimalNumber.from_str("2.71") / DecimalNumber.from_str("2.5")}') # print(f'{DecimalNumber.from_str("271") / DecimalNumber.from_str("0.25")}') # print(f'{DecimalNumber.from_str("0") / DecimalNumber.from_str("25")}') # log_whitelist([(inspect.getfile(DecimalNumber), '__truediv__')]) # print(f'{DecimalNumber.from_str("21") / DecimalNumber.from_str("4")}') log_whitelist([(inspect.getfile(DecimalNumber), 'trial_and_error_div')]) print( f'{DecimalNumber.trial_and_error_div(DecimalNumber.from_str("11"), DecimalNumber.from_str("2"))}' ) # print(f'{DecimalNumber.from_str("123.456")[3]}') # print(f'{DecimalNumber.from_str("123.456")[2]}') # print(f'{DecimalNumber.from_str("123.456")[1]}') # print(f'{DecimalNumber.from_str("123.456")[0]}') # print(f'{DecimalNumber.from_str("123.456")[-1]}') # print(f'{DecimalNumber.from_str("123.456")[-2]}') # print(f'{DecimalNumber.from_str("123.456")[-3]}') # print(f'{DecimalNumber.from_str("123.456")[-4]}') # print(f'{DecimalNumber.from_str("123.456").round(3)}') # print(f'{DecimalNumber.from_str("123.456").round(2)}')