Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
314201 242310陈在 NOIP2010 普及:第一题 数字统计 C++ 解答错误 10 0 MS 272 KB 275 2024-12-12 17:16:23

Tests(1/10):


#include<bits/stdc++.h> using namespace std; int main() { int a,b; cin>>a>>b; int s,f=0; for(int i=1; i<=b; i++) { s=i; while(true) { if(s%10==a) f++; if(s>=10) s=s/10; else break; } } if(f=0) cout<<0; cout<<f; return 0; }


测评信息: