leetcodeSolution to some Leetcode problems written in C++ |
git clone git://git.dimitrijedobrota.com/leetcode.git |
Log | Files | Refs | README | LICENSE |
2678.cpp (298B)
0 class Solution {
1 public:
2 int countSeniors(const vector<string> &details) const {
3 int res = 0;
5 for (const auto &detail : details) {
6 if (detail[11] < '6') continue;
7 if (detail[11] > '6' || detail[12] > '0') res++;
8 }
9 return res;
10 }
11 };