Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
75675 sh25_zhuwy 字符串比较 C++ 通过 0 MS 248 KB 286 2025-12-09 13:15:52

Tests(1/1):


#include<bits/stdc++.h> using namespace std; int main() { string x,y,z,max; cin>>x>>y>>z; int a=x.length(),b=y.length(),c=z.length(); if(a<b) { max=y; } else { max=x; } int m=max.length(); if(m<c) { max=z; } cout<<max; return 0; }


测评信息: