合肥工业大学oj 1279 Alice的车牌号

#include<iostream>
#include<string>
using namespace std;

int main(){
int T;
    cin >> T;
    for(int i = 1; i <= T; i++){
        string str;
        cin >> str;
        cout << "Case #"<< i << ": " << (str.find("13") == string::npos ? "Yes, I like it!" : "No, it's terrible!") << endl;//用find函数查找13
    }
    return 0;
}

//presented by 大吉大利,今晚AC

猜你喜欢

转载自blog.csdn.net/lalala_HFUT/article/details/88012054