


'''simple docstring'''
def     a   (    __a				,      __a       )						->			str:



					'''simple docstring'''






					UpperCamelCase__     :List[Any]							      =				len(_lowercase       )
					print('''The following activities are selected:'''       )

					# The first activity is always selected
					UpperCamelCase__     :str							      =				0
					print(_lowercase				,      end=''','''       )

					# Consider rest of the activities
					for j in range(_lowercase       ):
										# If this activity has start time greater than
										# or equal to the finish time of previously
										# selected activity, then select it
										if start[j] >= finish[i]:
															print(_lowercase				,      end=''','''       )
															UpperCamelCase__     :List[str]							      =				j


if __name__ == "__main__":
		import doctest

		doctest.testmod()

		__snake_case							   =  [1, 3, 0, 5, 8, 5]
		__snake_case							   =  [2, 4, 6, 7, 9, 9]
		print_max_activities(start, finish)



'''simple docstring'''
import json
import sys


def     a   (    __a				,      __a     )						->			str:



					'''simple docstring'''






					with open(__a				,      encoding='''utf-8'''     ) as f:
										UpperCamelCase__     :List[str]							      =				json.load(__a     )

					UpperCamelCase__     :int							      =				['''<details>''', '''<summary>Show updated benchmarks!</summary>''', ''' ''']

					for benchmark_name in sorted(__a     ):
										UpperCamelCase__     :Optional[Any]							      =				results[benchmark_name]

										UpperCamelCase__     :int							      =				benchmark_name.split('''/'''     )[-1]
										output_md.append(f'''### Benchmark: {benchmark_file_name}'''     )

										UpperCamelCase__     :List[str]							      =				'''| metric |'''
										UpperCamelCase__     :str							      =				'''|--------|'''
										UpperCamelCase__     :Union[str, Any]							      =				'''| new / old (diff) |'''
										for metric_name in sorted(__a     ):
															UpperCamelCase__     :List[Any]							      =				benchmark_res[metric_name]
															UpperCamelCase__     :Optional[int]							      =				metric_vals['''new''']
															UpperCamelCase__     :Any							      =				metric_vals.get('''old'''				,      __a     )
															UpperCamelCase__     :Optional[int]							      =				metric_vals.get('''diff'''				,      __a     )

															UpperCamelCase__     :List[str]							      =				f''' {new_val:f}''' if isinstance(__a				,      (int, float)     ) else '''None'''

															if old_val is not None:
																				val_str += f''' / {old_val:f}''' if isinstance(__a				,      (int, float)     ) else "None"
															if dif_val is not None:
																				val_str += f''' ({dif_val:f})''' if isinstance(__a				,      (int, float)     ) else "None"

															title += " " + metric_name + " |"
															lines += "---|"
															value += val_str + " |"

										output_md += [title, lines, value, " "]

					output_md.append('''</details>'''     )

					with open(__a				,      '''w'''				,      encoding='''utf-8'''     ) as f:
										f.writelines('''\n'''.join(__a     )     )


if __name__ == "__main__":
		__snake_case							   =  sys.argv[1]
		__snake_case							   =  sys.argv[2]

		format_json_to_md(input_json_file, output_md_file)