A non-transitory computer readable medium storing a control program of a three-dimensional laminating and shaping apparatus including
- a material supplier that supplies materials of a three-dimensional laminated and shaped object to a shaping surface,
- an irradiator that irradiates the materials with a light beam, and
- a controller that controls the material supplier,
- wherein the three-dimensional laminated and shaped object is a joined member obtained by joining at least two kinds of materials,
- the program for causing a computer to execute a method, comprising:
- causing the controller to control the material supplier to form a graded composition of the materials in a boundary region of the three-dimensional laminated and shaped object, wherein the boundary region is formed with a plurality of layers and the controller controls the material supplier to form the graded composition of the boundary region layer by layer with each of the plurality of layers being formed by alternately depositing a first of the at least two kinds of materials and then a second of the at least two kinds of materials such that each of the plurality of layers is formed in a direction perpendicular to a laminating direction of the first and second kinds of materials with each of the plurality of layers comprising alternating portions of the first and second kinds of materials.