#include<iostream>
#include<string>
using namespace std;
int main() {
string str, prestr;
bool twice = false;
while (cin >> str) {
if (isupper(str[0]) &&str == prestr) {
twice = true;
break;
}
else {
prestr = str;
}
}
if (!twice) {
cout << "没有单词重复" << endl;
}
else {
cout << str << endl;
}
return 0;
}
5.5.2
最新推荐文章于 2024-09-10 15:30:07 发布