#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
#define rep(i, n) for(int i = 0; i < (n); i++)
#define rep1(i, n) for(int i = 1; i <= (n); i++)
#define co(x) cout << (x) << "\n"
#define cosp(x) cout << (x) << " "
#define ce(x) cerr << (x) << "\n"
#define cesp(x) cerr << (x) << " "
#define pb push_back
#define mp make_pair
#define Would
#define you
#define please
const int cm = 1 << 17;
char cn[cm], *ci = cn + cm, ct;
inline char getcha() {
if (ci - cn == cm) { fread(cn, 1, cm, stdin); ci = cn; }
return *ci++;
}
inline int getint() {
int A = 0;
if (ci - cn + 16 > cm) while ((ct = getcha()) >= '0') A = A * 10 + ct - '0';
else while ((ct = *ci++) >= '0') A = A * 10 + ct - '0';
return A;
}
int gcd(int A, int B) {
if (B) return gcd(B, A % B);
return A;
}
int main() {
cin.tie(0);
ios::sync_with_stdio(false);
int N = getint(), K = getint();
int g = getint();
int saidai = g;
rep(i, N - 1) {
int a = getint();
g = gcd(a, g);
saidai = max(saidai, a);
}
if (K % g == 0 && K <= saidai) co("POSSIBLE");
else co("IMPOSSIBLE");
Would you please return 0;
}
./Main.cpp: In function ‘char getcha()’:
./Main.cpp:19:46: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
if (ci - cn == cm) { fread(cn, 1, cm, stdin); ci = cn; }
^