Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
430987 赵晗博 【C5-7】找最长单词 C++ 编译错误 0 0 MS 0 KB 320 2026-03-06 20:23:53

Tests(0/0):


#include<bits/stdc++.h> using namespace std; int main(){ string a,b; while(cin>>a) { int l=a.size(); if(a[l-1]=='.') { a.erase(l-1); } if(a.size()>ma && a.find("a")!=-1) { ma=a.size(); b=s; } } if(b=="") { cout<<"NO"; } else { cout<<b; } return 0; }


测评信息: