Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
116985 晏莞煜 15几个数字组成 C++ Accepted 1 MS 272 KB 183 2025-04-13 09:49:36

Tests(10/10):


Code:

#include<bits/stdc++.h> using namespace std; int main(){ int n; cin>>n; int sum=0; if(n==0){ sum++; } while(n!=0){ n/=10; sum++; } cout<<sum; return 0; }