Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- problema 1452
- #include <iostream>
- using namespace std;
- int main()
- {
- int v[1500],n,i,p,j;
- cin>>n>>p;
- for (i=0;i<n;i++)
- cin>>v[i];
- for (j=p-1;j<n-1;j++)
- v[j]=v[j+1];
- n--;
- for (j=0;j<n;j++)
- cout<<v[j]<<' ';
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement