Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
114668 范恒恺 15几个数字组成 C++ Accepted 1 MS 272 KB 194 2025-03-23 08:39:31

Tests(10/10):


Code:

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