#include<cstdio>
#include<iostream>
#include<algorithm>
#include<stdio.h>
#include<math.h>
#include<string.h>
#include<map>
#include<vector>
#include<set>
using namespace std;
vector<int>vv;
int main()
{
int n,st,s,t,m;
cin>>n;
for(int i=0;i<n;i++)
{
cin>>m;
vv.push_back(m);//依次把数存在栈底
}
cin>>st;
cin>>s>>t;
vv.erase(vv.begin()+st-1);//因为数组是从0开始的,
vv.erase(vv.begin()+s-1,vv.begin()+t-1);
cout<<vv.size()<<endl;
for(int i=0;i<vv.size();i++)
{
if(i==0)
cout<<vv[i];
else
cout<<" "<<vv[i];
}
cout<<endl;
//cout<<vv[i]<<endl;
//cout<<vv[vv.size()-1]<<endl;
return 0;
}
相关文章
- 11-19CF-911E.Stack Sorting(栈)
- 11-19cf1271E——数学找规律,二分套二分
- 11-19创建 userSettings/Microsoft.SqlServer.Configuration.LandingPage.Properties.Settings 的配置节处理程序时出错: 未能加载文件或程序集“System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089”或它的某一个依赖项。系统没找到指定的文件
- 11-19E. String Multiplication dp
- 11-19【kuangbin带你飞-区间DP-3】E - Multiplication Puzzle POJ-1651
- 11-19CF1155 E.Guess the Root
- 11-19CF590E Birthday
- 11-19Codeforces 547C/548E - Mike and Foam 题解
- 11-19【CF 547E】 Mike and Friends
- 11-19ICPC2019 南京. E. Observation(思路)