Lang:G++
Edit12345678910111213141516171819202122232425262728293031#include <iostream>#include <string>#include <map>#include <algorithm>#include <vector>using namespace std;int fibo[11] = {1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89};bool IsTrue(string s){int map[26] = {0};for(int i = 0; i < s.size(); ++i){map[s[i] - 'a']++;}int count = 0;for(int i = 0; i < 26; ++i){if(map[i])count++;}bool flag = false;for(int i = 0; i < 11; ++i){if(count == fibo[i]){flag = true;break;}}return flag;}int main()