예제 #1
0
def __main__():
    runner = Runner(INPUT_PATH, OUTPUT_PATH, debug=True)

    # Your code goes here
    tree = build_tree(runner.input_data[0])

    runner.finish([tree.value])
def __main__():
    # BE SURE TO RENAME PARENT_FOLDER_NAME VARIABLE
    runner = Runner(INPUT_PATH, OUTPUT_PATH, debug=True)

    # Your code goes here
    result = find_one_letter_diff_record(runner.input_data)

    runner.finish([result])
def __main__():
    # BE SURE TO RENAME PARENT_FOLDER_NAME VARIABLE
    runner = Runner(INPUT_PATH, OUTPUT_PATH, debug=True)

    # Your code goes here
    claims = create_claims(process_input(runner.input_data))
    claim = determine_not_overlapped(claims)

    runner.finish([claim.id])
예제 #4
0
def __main__():
    runner = Runner(INPUT_PATH, OUTPUT_PATH, debug=True)

    iterations = process_data(runner.input_data)

    frequency = 0
    repeated_position = find_repeated_position(frequency, iterations)

    runner.finish([repeated_position])
예제 #5
0
def __main__():
    runner = Runner(INPUT_PATH, OUTPUT_PATH, debug=True)

    # Your code goes here
    raw_steps = process_input(runner.input_data)
    steps = create_steps(raw_steps)

    base_time = 60
    worker_num = 5
    execution_log = execute_steps(steps, base_time, worker_num)

    runner.finish([execution_log])
예제 #6
0
def __main__():
    # BE SURE TO RENAME PARENT_FOLDER_NAME VARIABLE
    runner = Runner(INPUT_PATH, OUTPUT_PATH, debug=True)

    # Your code goes here
    runner.input_data.sort()
    shifts = create_shifts(runner.input_data)

    most_asleep = get_most_asleep(shifts)

    checksum = int(most_asleep["GUARD_ID"]) * most_asleep["MINUTE"]
    runner.finish([checksum])
예제 #7
0
def __main__():
    # BE SURE TO RENAME PARENT_FOLDER_NAME VARIABLE
    runner = Runner(INPUT_PATH, OUTPUT_PATH, debug=True)

    # Your code goes here
    runner.input_data.sort()
    shifts = create_shifts(runner.input_data)

    most_tired_guard = obtain_most_tired_guard(shifts)
    shifts_for_guard = get_shifts_for_guard(shifts, most_tired_guard)
    most_asleep_minute = get_most_asleep_minute(shifts_for_guard)

    checksum = int(most_tired_guard) * most_asleep_minute
    runner.finish([checksum])
예제 #8
0
def __main__():
    runner = Runner(INPUT_PATH, OUTPUT_PATH, debug=True)

    # Your code goes here

    runner.finish([])