Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
160382 Kevin 最长的单词 C++ Accepted 1 MS 276 KB 203 2026-09-17 15:31:49

Tests(1/1):


Code:

#include<iostream> #include<cstring> using namespace std; int main() { string a,b; int len=0; while(cin>>a){ if(a.size()>len){ len=a.size(); b=a; } } cout<<b; return 0; }