Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int cnt = 0, idx = (n - 1) / 2 + 1;
- while(cnt < (n + 1) / 2){
- is_list[idx] = true;
- cin >> val[idx];
- idx++;
- cnt++;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement