#19103: 個人C++解答


Jeremy3407207 (什麼牛牛牛啦)

學校 : 國立嘉義高級中學
編號 : 101365
來源 : [163.27.3.89]
最後登入時間 :
2021-03-15 09:09:21

#include <iostream>
#include <cstdio>
#include <cmath>
using namespace std;

int main() //d039
{
long long int x,y,z;
while(cin>>x>>y)
{ if(x==0&&y==0)
cout<<"Ok!";
else if(x!=0&&y==0)
cout<<"Impossib1e!";
else if(x%y==0)
cout<<"Ok!";
else
cout<<"Impossib1e!";
cout<<endl;

}
return 0;
}