| Run ID | 作者 | 问题 | 语言 | 测评结果 | 时间 | 内存 | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 82449 | sh25_shenpy | 记数问题 | C++ | 解答错误 | 10 MS | 244 KB | 352 | 2026-01-13 21:34:58 |
#include <bits/stdc++.h> using namespace std ; int a[10] ; int cnt = 0 ; int n , x ; void func(int n ) { int m = n ; while(m) { if(m % 10 == 0) cnt++ ; m /= 10 ; } } int main() { cin >> n >>x ; for(int i = 1 ; i <= n ; i++ ) func(i) ; cout << cnt << endl ; return 0 ; }