Advertisement
Guest User

Untitled

a guest
Dec 7th, 2019
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7.  
  8. int n,p,i,v[1600];
  9. cin>>n>>p;
  10. for(i=1;i<=n;i++)
  11. {
  12. cin>>v[i];
  13. }
  14. for(i=1;i<=n;i++)
  15. {
  16. if(i!=p)
  17. cout<<v[i]<<" ";
  18. }
  19. return 0;
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement