| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 67025 | 胡海峰老师 | 优化冒泡排序 | Python3 | Compile Error | 0 MS | 0 KB | 286 | 2024-03-12 20:16:00 |
n = int(input()) a = list(map(int,input().split())) for i in range(n-1): no_swap = True for j in range(n-i-1): if a[j]<a[j+1]: a[j],a[j+1] = a[j+1],a[j] no_swap=False if no_swap: break b = [str(t) for t in a] print(' ' .join(b))
Sorry: IndentationError: unindent does not match any outer indentation level (Main.py, line 7)