Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
72526 吕毅心 15几个数字组成 C++ Accepted 0 MS 272 KB 292 2024-05-09 18:45:54

Tests(10/10):


Code:

# include<iostream> # include<cstdio> using namespace std; int main(){ int a,i=0,w=0; cin>>a; if(a==0){ w=1; }else{ while(a!=0){ a=a/10; w=w+1; } } cout<<w; return 0; }