AC

robin88 · 发布于 2024-07-26 · 浏览 754 回复 2

include

using namespace std; / run this program using the console pauser or add your own getch, system("pause") or input loop /

int main(int argc, char** argv) {

int n=0,dele=0;
cin>>n;
int a[n]={0};
for(int i=0;i<n;i++){
	cin>>a[i];
}
cin>>dele;
for(int i=0;i<n;i++){
	if(i==(dele-1)){
		continue;
	}
	cout<<a[i]<<" ";
}
return 0;

}

全部回复 共 2 条

  1. 噢莫加纳加加加 #1 ·
    QWERTYUIOPLKJHGFDSAZXCVBN 
    ABCDEFGHIJKLMNOPQRSTUVWXY 
    DSLIEWO
    
    Failed
    
    
    MSRTZCJKPFLQYVAWBINXUEDGHOOILSMIJFRCOPPQCEUNYDUMPP
    YIZSDWAHLNOVFUCERKJXQMGTBPPKOIYKANZWPLLVWMQJFGQYLL
    FLSO 
    
    NOIP
    
  2. 小唐唐 #2 ·

    AC你个毛线

发表回复