Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
66210 李雨昊 12满足条件的四位数 C++ Accepted 0 MS 268 KB 218 2024-03-03 11:26:08

Tests(10/10):


Code:

#include<iostream> #include<cstdio> using namespace std; int main() { int a,n,num = 0; cin>>n; for(int i=1;i<=n;i++){ cin>>a; if (a%10 > a/10%10+a/100%10+a/1000){ num++; } } cout<<num; }