Create pat_1017.cpp