Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
336080 李俞家骅 【C2-6】统计数字 C++ 通过 100 2 MS 240 KB 313 2025-07-25 10:40:51

Tests(1/1):


#include<bits/stdc++.h> using namespace std; int main(){ int n,x,c3=0,c4=0,c5=0; cin>>n; for(int i=1;i<=n;i++){ cin>>x; if(100<=x&&x<=999) c3++; if(1000<=x&&x<=9999) c4++; if(10000<=x&&x<=99999) c5++; } cout<<c3<<" "; cout<<c4<<" "; cout<<c5<<" "; return 0; }


测评信息: