1

耦园采雪 · 发布于 2022-10-02 · 浏览 655 回复 0

include

using namespace std;

int main() {

int a, b, c = 0;
cin >> a;
string x, y;
for (int i = 0; i < a; i++) {
	cin >> x;
	b = x.size();
	if (b > c) {
		c = b;
		y = x;
	}
}
cout << y;
return 0;

}

全部回复 共 0 条

还没有人回复。往下写第一条。

发表回复