Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- input :
- 10
- 1 2 5 4 7 8 5 4 1 3
- 10
- 4 5 5 4 5 2 1 4 6 4
- 10
- 10 1 2 3 4 5 6 7 8 9
- output :
- Minimum exchange operations : 20
- Minimum exchange operations : 20
- Minimum exchange operations : 9
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement