Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
7974 邓小龙 满足条件四位数的个数 C++ Accepted 0 MS 272 KB 346 2025-05-31 20:09:16

Tests(10/10):


Code:

#include<bits/stdc++.h> using namespace std; int main(){ int n,cnt=0; cin>>n; while(n--){ //统计符合条件的个数 int t; cin>>t; //将t的个,十,百,千位求出来 if(t%10-t/10%10-t/100%10-t/1000%10>0) cnt++; } cout<<cnt<<endl; return 0; }