Untitled
unknown
plain_text
a year ago
334 B
4
Indexable
class Solution { public: int countSeniors(vector<string>& details) { int ans = 0; for(int i=0;i<details.size();i++) { int age = 0; age = (details[i][11] - '0') * 10 + (details[i][12] - '0'); if(age>60)ans++; } return ans; } };
Editor is loading...
Leave a Comment