2678.cpp (298B)
1 class Solution { 2 public: 3 int countSeniors(const vector<string> &details) const { 4 int res = 0; 5 6 for (const auto &detail : details) { 7 if (detail[11] < '6') continue; 8 if (detail[11] > '6' || detail[12] > '0') res++; 9 } 10 return res; 11 } 12 };