| Run ID | 作者 | 问题 | 语言 | 测评结果 | 时间 | 内存 | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 82438 | sh25_shenpy | 记数问题 | C++ | 运行超时 | 1000 MS | 240 KB | 195 | 2026-01-13 17:41:15 |
#include<iostream> using namespace std; int main(){ int n,x; cin>>n>>x; int s=0; for(int i=1;i<=n;++i){ while(i>0){ if(i%10==x) ++s; i=i/10; } } cout<<s; return 0; }