출력 결과는 다음과 같다.
Enter box length, width, & height separated by spaces - Ctrl+Z to end: 4 4 5
Enter box length, width, & height separated by spaces - Ctrl+Z to end: 6 5 7
Enter box length, width, & height separated by spaces - Ctrl+Z to end: 2 2 3
Enter box length, width, & height separated by spaces - Ctrl+Z to end: 1 2 3
Enter box length, width, & height separated by spaces - Ctrl+Z to end: 3 3 4
Enter box length, width, & height separated by spaces - Ctrl+Z to end: 3 3 3
Enter box length, width, & height separated by spaces - Ctrl+Z to end: ^Z
정렬한 순차열:
Box(1,2,3) Box(2,2,3) Box(3,3,3) Box(3,3,4) Box(4,4,5) Box(6,5,7)
더 많은 상자를 삽입한 순차열:
Box(3,3,3) Box(5,5,5) Box(4,4,4) Box(2,2,2) Box(1,2,3) Box(2,2,3)
Box(3,3,3) Box(3,3,4) Box(4,4,5) Box(6,5,7)
다시 정렬한 순차열:
Box(1,2,3) Box(2,2,2) Box(2,2,3) Box(3,3,3) Box(3,3,3) Box(3,3,4)
Box(4,4,4) Box(4,4,5) Box(5,5,5) Box(6,5,7)
more_boxes를 병합한 순차열:
Box(1,2,3) Box(2,2,2) Box(2,2,2) Box(2,2,3) Box(3,3,3) Box(3,3,3)
Box(3,3,3) Box(3,3,4) Box(4,4,4) Box(4,4,4) Box(4,4,5) Box(5,5,5)
Box(5,5,5) Box(6,5,7)
중복 삭제를 제거한 순차열:
Box(1,2,3) Box(2,2,2) Box(2,2,3) Box(3,3,3) Box(3,3,4) Box(4,4,4)
Box(4,4,5) Box(5,5,5) Box(6,5,7)
부피가 30 미만인 상자를 제거하고 정렬한 순차열:
Box(3,3,4) Box(4,4,4) Box(4,4,5) Box(5,5,5) Box(6,5,7)