Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int cmmci(int n)
- {
- int cmmc=0;
- while(n)
- cmmc=max(cmmc,n%10),n/=10;
- if(cmmc%2)
- return 1;
- else
- return 0;
- }
- int main()
- {
- int n;
- cin>>n;
- int x,nrncmmci=0;
- while(n--)
- cin>>x,nrncmmci+=cmmci(x);
- cout<<nrncmmci<<'\n';
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement