





"""simple docstring"""



from __future__ import annotations

from statistics import mean







def 	__lowercase  (     snake_case_						:						list[int]		)     ->list[int]:



    '''simple docstring'''







    __A					:		Optional[Any]						=  2
    __A					:		Dict						=  list(snake_case_		)
    __A					:		Union[str, Any]						=  [0] * len(snake_case_		)
    __A					:		int						=  0
    while True:
        __A					:		List[str]						=  True
        for i, burst_time in enumerate(snake_case_		):
            if rem_burst_times[i] > 0:
                __A					:		List[Any]						=  False
                if rem_burst_times[i] > quantum:
                    t += quantum
                    rem_burst_times[i] -= quantum
                else:
                    t += rem_burst_times[i]
                    __A					:		List[Any]						=  t - burst_time
                    __A					:		Tuple						=  0
        if done is True:
            return waiting_times







def 	__lowercase  (     snake_case_						:						list[int]       ,snake_case_						:						list[int]		)     ->list[int]:



    '''simple docstring'''







    return [burst + waiting for burst, waiting in zip(snake_case_       ,snake_case_		)]


if __name__ == "__main__":
       a_				=    [3, 5, 7]
       a_				=    calculate_waiting_times(burst_times)
       a_				=    calculate_turn_around_times(burst_times, waiting_times)
       print("""Process ID \tBurst Time \tWaiting Time \tTurnaround Time""")
       for i, burst_time in enumerate(burst_times):
              print(
                  f'''  {i + 1}\t\t  {burst_time}\t\t  {waiting_times[i]}\t\t  '''
                  f'''{turn_around_times[i]}'''
              )
       print(f'''\nAverage waiting time = {mean(waiting_times):.5f}''')
       print(f'''Average turn around time = {mean(turn_around_times):.5f}''')











"""simple docstring"""



import decimal







def 	__lowercase  (     )     ->int:



    '''simple docstring'''







    __A					:		List[str]						=  0
    __A					:		Tuple						=  decimal.Context(prec=105		)
    for i in range(2       ,100		):
        __A					:		int						=  decimal.Decimal(snake_case_		)
        __A					:		str						=  number.sqrt(snake_case_		)
        if len(str(snake_case_		)		) > 1:
            answer += int(str(snake_case_		)[0]		)
            __A					:		Optional[Any]						=  str(snake_case_		)[2:101]
            answer += sum(int(snake_case_		) for x in sqrt_number_str		)
    return answer


if __name__ == "__main__":
       import doctest

       doctest.testmod()
       print(f'''{solution() = }''')




