Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
128305 吴雨卓 22插入数据 C++ Wrong Answer 2 MS 272 KB 309 2025-08-14 08:59:51

Tests(0/10):


Code:

#include<bits/stdc++.h> using namespace std; int main(){ int n,a[101],m,o,p,b[101]; cin>>n; cin>>m; for(int i=0;i<n;i++){ cin>>a[i]; if(m>a[i]){ o=i; p=o; break; } }for(;o<n;o++){ b[o+1]=a[o]; }a[p]=m; for(;p<n;p++){ a[p+1]=b[p+1]; }for(int i=0;i<n;i++){ cout<<a[i]<<" "; } }


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-----
566 561 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0