| Run ID | 作者 | 问题 | 语言 | 测评结果 | 时间 | 内存 | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 77719 | sh25_shenpy | digit函数 | C++ | 解答错误 | 0 MS | 240 KB | 232 | 2025-12-26 14:42:47 |
#include<bits/stdc++.h> using namespace std; void a(){ int n,k; cin>>n>>k; int s=0; for(int i=0;i<k;++i){ n=n/10; if(n!=0) ++s; } cout<<s; } int main(){ a(); return 0; }