Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <bits/stdc++.h>
- using namespace std;
- const int N = 1000;
- int arr[N + 10];
- int main(){
- int nPeople, nGot;
- scanf("%d%d", &nPeople, &nGot);
- for(int i = nPeople - nGot + 1; i <= nPeople; ++i){
- scanf("%d", &arr[i]);
- }
- for(int i = 1; i <= nPeople - nGot; ++i){
- scanf("%d", &arr[i]);
- }
- for(int i = 1; i <= nPeople; ++i){
- cout << arr[i] << ' ';
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement