| Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|
| 88556 | sh25_zhangzh | 数字统计 | C++ | Accepted | 0 MS | 244 KB | 249 | 2026-05-15 14:53:10 |
#include<iostream> #include<string> using namespace std; int main() { int a,b; cin>>a>>b; int s=0; for(int i=a;i<b+1;i++) { int c=i; while(c!=0) { if(c%10==2) { s+=1; } c/=10; } } printf("%d",s); }