Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
87455 张亦瑞 22插入数据 Python3 Wrong Answer 32 MS 3748 KB 179 2024-08-10 11:41:42

Tests(0/10):


Code:

b = int(input()) a = list(map(int, input(). split())) new = int(input()) p = 0 for x in range(b): if a[x] < new: p = x break a.insert(p,new) 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-----