#define _CRT_SECURE_NO_WARNINGS #define _USE_MATH_DEFINES #include #include #include #include #include #include #include #include #include #include #define REP(i,a,b) for(i=a;i> N; for(i=0;i