Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
90362 蒙恒羽 打印每一趟插入排序 Python3 Compile Error 0 MS 0 KB 273 2024-09-11 20:43:56

Tests(0/0):


Code:

n = int(input()) nums = list(int(i) for i in input().split()) for i in range(1, len(nums)): key = nums[i] j = i - 1 while j >= 0 and key < nums[j]: nums[j + 1] = nums[j] j -= 1 print(nums) nums[j + 1] = key print(nums)


Run Info:

Sorry: TabError: inconsistent use of tabs and spaces in indentation (Main.py, line 13)