Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
71651 sh25_ganzy 数字统计 C++ 解答错误 0 MS 236 KB 297 2025-10-26 18:02:43

Tests(0/1):


#include<bits/stdc++.h> using namespace std; int main(){ int L,R,i,i0,cnt=0; cin>>L>>R; for(i=L;i<=R;i++){ i0=i; while(i!=0){ if(i%10==2){ cnt++;; } i/=10; } i=i0; } return 0; }


测评信息: