12345678910111213141516171819202122232425262728293031 |
- std::string edabitInString(std::string str) {
-
- std::string edabit = "edabit";
- int position = 0;
-
- for(int i=0;i<edabit.size();i++){
-
- bool found = false;
-
- for(;position<str.size();position++){
-
- if(str[position]==edabit[i]){
- found = true;
- break;
- }
- }
-
- if(!found){
- return "NO";
- }
- }
-
- return "YES";
- }
|