6 条题解

  • 2
    @ 2025-7-15 10:10:40
    #include<bits/stdc++.h>
    using namespace std;
    int main()
    {
    	int n,t=0;
    	cin>>n;
    	while(n)
    	{
    		n=n/10;
    		t++;
    	}
    	if(t>=1)
    	{
    		cout<<t;
    	}else{
    		cout<<1;
    	}
    	return 0;
    }
    

    信息

    编号
    2328
    时间
    1000ms
    内存
    256MiB
    难度
    3
    标签
    递交数
    116
    已通过
    41
    上传者