标签:and out namespace 程序 lse cout c++ mes clu
思路:
水题,略过
Tip:
无
#include <bits/stdc++.h> using namespace std; int main() { int n, t, num = 0; string now; cin >> n >> t; getchar(); for (int i = 1; i <= n; i++) { string s; getline(cin, s); if (!(s.find("qiandao") != string::npos || s.find("easy") != string::npos)) { num++; if (num == t + 1) { now = s; break; } } } if (num < t + 1) cout << "Wo AK le" << endl; else cout << now << endl; return 0; }
标签:and out namespace 程序 lse cout c++ mes clu
原文地址:https://www.cnblogs.com/Whiteying/p/14707766.html