Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
156008 卢语宸 字符串中最大的数字II C++ Accepted 1 MS 272 KB 255 2026-06-19 22:05:58

Tests(10/10):


Code:

#include<iostream> using namespace std; char a[100005]; int b; int main(){ cin>>a; for(int i=0;a[i]!='\0';i++){ cin>>a[i]; if(a[i]=='.'){ continue; } if(int (a[i]-'0')>b){ b=int (a[i]-'0'); } } cout<<b; return 0; }