#0: 100% WA (line:5)
您的答案為: OK!
正確答案為: Ok!
#include <iostream>
using namespace std;
int main() {
int a = 0, b = 0;
while (cin >> a >> b)
{
if (a == 0)
{
cout << "OK!" << endl;
continue;
}
if (b == 0)
{
cout << "Impossib1e!" << endl;
continue;
}
if (a % b == 0)
cout << "Ok!" << endl;
if (a % b != 0)
cout << "Impossib1e!" << endl;
}
}
#0: 100% WA (line:5)
您的答案為: OK!
正確答案為: Ok!
#include
using namespace std;
int main() {
int a = 0, b = 0;
while (cin >> a >> b)
{
if (a == 0)
{
cout << "OK!" << endl;
continue;
}
if (b == 0)
{
cout << "Impossib1e!" << endl;
continue;
}
if (a % b == 0)
cout << "Ok!" << endl;
if (a % b != 0)
cout << "Impossib1e!" << endl;
}
}
k 的大小寫吧
#0: 100% WA (line:5)
您的答案為: OK!
正確答案為: Ok!
#include
using namespace std;
int main() {
int a = 0, b = 0;
while (cin >> a >> b)
{
if (a == 0)
{
cout << "OK!" << endl;
continue;
}
if (b == 0)
{
cout << "Impossib1e!" << endl;
continue;
}
if (a % b == 0)
cout << "Ok!" << endl;
if (a % b != 0)
cout << "Impossib1e!" << endl;
}
}
k 的大小寫吧
#include <iostream> using namespace std; int main() { int a = 0, b = 0; while (cin >> a >> b) { if (a == 0) { cout << "Ok//這裡!" << endl; continue; } if (b == 0) { cout << "Impossib1e!" << endl; continue; } if (a % b == 0) cout << "Ok!" << endl; if (a % b != 0) cout << "Impossib1e!" << endl; } }