robin88 • 1年前
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;
}
评论:
QWERTYUIOPLKJHGFDSAZXCVBN 
ABCDEFGHIJKLMNOPQRSTUVWXY 
DSLIEWO
Failed
MSRTZCJKPFLQYVAWBINXUEDGHOOILSMIJFRCOPPQCEUNYDUMPP
YIZSDWAHLNOVFUCERKJXQMGTBPPKOIYKANZWPLLVWMQJFGQYLL
FLSO 
NOIP
请先登录,才能进行评论