Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
87463 胡海峰老师 22插入数据 Python3 Wrong Answer 39 MS 3760 KB 174 2024-08-10 12:46:32

Tests(0/10):


Code:

n = int(input()) a = list(map(int,input().split())) m = int(input()) p = 0 for i in range(n): if a[i]<m: p = i break a.insert(p,m) print(*a)


Run Info:

------Input------
25 566 561 556 551 546 541 536 531 526 521 516 511 506 501 496 491 486 481 476 471 466 461 456 456 210
------Answer-----
566 561 556 551 546 541 536 531 526 521 516 511 506 501 496 491 486 481 476 471 466 461 456 456 210
------Your output-----