| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 72569 | 朱震耀老师 | 导弹拦截问题 | Python3 | Compile Error | 0 MS | 0 KB | 451 | 2024-05-11 11:01:24 |
def intercept_missiles(heights): if not heights: return 0 intercept_count = 1 max_height = heights[0] for height in heights[1:]: if height > max_height: intercept_count += 1 max_height = height return intercept_count def main(): heights = list(map(int, input().split())) cnt = intercept_missiles(heights) print(cnt) if __name__ == "__main__": main()
Sorry: TabError: inconsistent use of tabs and spaces in indentation (Main.py, line 16)