A computer-readable storage medium storing a program for causing a computer to acquire an inspection condition for performing an inspection on a pattern formed by a lithography apparatus that forms a pattern on a substrate with an original, the program causing the computer to execute an acquisition method including an acquisition unit configured to acquire a second inspection condition to be applied in a case where an inspection is performed on a second pattern by inputting third information indicating a state of the lithography apparatus acquired when the second pattern is formed to a model,
- wherein the model is acquired by machine learning with learning data including first information indicating a state of the lithography apparatus acquired when a first pattern is formed and second information indicating a first inspection condition applied when an inspection is performed on the first pattern.