Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
79286 sh25_shenpy 梦中的统计 C++ 解答错误 0 MS 236 KB 294 2026-01-01 21:19:55

Tests(0/1):


#include<bits/stdc++.h> using namespace std; int main(){ int m,n; int s[10]={0}; for(int i=m;i<=n;++i){ while(i!=0){ s[i%10]=s[i%10]+i%10; i=i/10; } } for(int b=0;b<10;++b){ cout<<s[b]/b<<" "; } return 0; }


测评信息: