Advertisement
alex326

Untitled

Apr 16th, 2018
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. problema 1452
  2.  
  3. #include <iostream>
  4. using namespace std;
  5. int main()
  6. {
  7. int v[1500],n,i,p,j;
  8. cin>>n>>p;
  9. for (i=0;i<n;i++)
  10. cin>>v[i];
  11. for (j=p-1;j<n-1;j++)
  12. v[j]=v[j+1];
  13. n--;
  14. for (j=0;j<n;j++)
  15. cout<<v[j]<<' ';
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement