Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
77691 sh25_shenpy digit函数 C++ 编译错误 0 MS 0 KB 234 2025-12-26 14:40:06

Tests(0/0):


#include<bits/stdc++.h> using namespace std; int n,k; void a(n,k){ int s=0; for(int i=0;i<k;++i){ n=n/10; if(n!=0) ++s; } cout<<s; } int main(){ cin>>n>>k; a(n,k); return 0; }


测评信息: