Run ID | 作者 | 问题 | 语言 | 测评结果 | 分数 | 时间 | 内存 | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|---|
332389 | 黄浙峰老师 | 【C5-5】求英文句子中的最长单词 | C++ | 通过 | 100 | 3 MS | 260 KB | 187 | 2025-07-14 16:41:29 |
#include<bits/stdc++.h> using namespace std; int main(){ string s,ms; int ma=0; while(cin>>s){ if(s.size()>ma){ ma=s.size(); ms=s; } } cout<<ms; return 0; }