#include #include using namespace std; class Solution { public: bool checkRecord(string s) { int absent_count = 0; for (int i = 0; i < s.length(); i++) { absent_count += (s[i] == 'A'); if (absent_count > 1) return false; } for (int i = 0; i < (int)s.length() - 2; i++) { // cout<