#include #include using namespace std; #define NMAX 10000 int gcd(int a,int b){ if(a>N; for(int i=0;i>a[i]; for(int i=0;isaisyo||(mingcd==saisyo&&a[j]