一道简单编程题


#include <iostream>using namespace std;int main(){    int L, W;    while(scanf("%d %d", &L, &W) != EOF)    {        if (L*W % 2 != 0 || (L%2 == 0 && W%2 == 0))        {            cout << "My God!" << endl;            continue;        }        cout << "God save the pig!" << endl;    }}

文章标签:

本文链接:https://www.u1e.cn/baike/a/bbe96a5766aeae8cc5eb4d48 [复制]

猜你喜欢

歇后语大全

还没有人回应过