mirror of
https://github.com/wczffl-503/OI-Codes.git
synced 2025-05-10 08:10:27 +08:00
28 lines
382 B
C++
28 lines
382 B
C++
#include <iostream>
|
|
#include <cstring>
|
|
#include <cstdio>
|
|
#include <iomanip>
|
|
using namespace std;
|
|
int main(){
|
|
int a[10000],b,c,d,e,f,g=0;
|
|
scanf("%d",&b);
|
|
for(int i=0;i<b;i++){
|
|
cin >>a[i];
|
|
}
|
|
for(int i=0;i<b;i++){
|
|
c=a[i]%10;
|
|
a[i]/=10;
|
|
d=a[i]%10;
|
|
a[i]/=10;
|
|
e=a[i]%10;
|
|
a[i]/=10;
|
|
f=a[i]%10;
|
|
a[i]/=10;
|
|
if((c-d-e-f)>0){
|
|
g++;
|
|
}
|
|
}
|
|
printf("%d",g);
|
|
return 0;
|
|
}
|