| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970 |
- #include <algorithm>
- #include <array>
- #include <iostream>
- #include <map>
- #include <utility>
- #include <vector>
- #include <iomanip>
- #include <sstream>
- #include <climits>
- #include <queue>
- #include <list>
- using namespace std;
- typedef unsigned int nat;
- void rec(map<string, nat> &dict, string str, nat i, nat pos)
- {
- if(str[i] < 'z')
- {
- di
- str[pos]++;
- }
- else
- {
- if(str)
- }
- }
- void generate()
- {
- map<string, nat> tal;
- char o = 'a'-1;
- string str = {o,o,o,o,'a'};
- for(nat i = 1; i <= 83681; ++i)
- {
- if(str[4] < 'z')
- {
- ++str[4];
- tal[str] = i;
- }
- else
- {
- if(str[3] < 'z')
- str[4] = str[3]+1; // Kolla z?
- else
- break;
- if(str[3] < 'z')
- {
- ++str[3];
- }
- else
- {
- ....
- }
- }
- }
- }
- int main()
- {
- return 0;
- }
|