hiho week 84 register

Ended

Participants:186

Verdict:Accepted
Score:100 / 100
Submitted:2016-02-13 10:02:28

Lang:G++

Edit
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#include <iostream>
#include <cstdio>
#include <cstring>
#include <algorithm>
#include <string>
#include <vector>
#include <map>
#include <set>
using namespace std;
vector<string> vec;
map<int, bool> ibmap;
void getFibonacci() {
    int first = 1;
    int second = 1;
    while(first <= 100) {
        int tmp = second;
        second += first;
        first = tmp;
        ibmap[first] = true;
    }
}
void solve(const string& str) {
    getFibonacci();
    for(int i = 0; i < str.size(); ++ i) {
        map<char, int> cimap;
        int cnt = 0;
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX