L1-078 吉老师的回归

继续加油吧。

#include <bits/stdc++.h>
using namespace std;
int main() {
	int n, hasdo;
	cin >> n >> hasdo;
	cin.get();
	string s;
	for (int i = 0; i < n; i++) {
		getline(cin, s);
		if (s.find("easy") != string::npos || s.find("qiandao") != string::npos) {
			continue;
		}
		//如果不是
		hasdo--;
		if (hasdo < 0) {
			cout << s << '\n';
			return 0;
		}
	}
	cout << "Wo AK le" << '\n';
	return 0;
}
posted @ 2024-03-30 08:59  YuKiCheng  阅读(14)  评论(0编辑  收藏  举报