Guest User

Untitled

a guest
Oct 13th, 2017
29
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.84 KB | None | 0 0
  1. #include <iostream>
  2. #include <string>
  3. using namespace std;
  4.  
  5. string int_array_to_string(int int_array[], int from, int to)
  6. {
  7. string czesci = "";
  8. for (; from < to; from++)
  9. {
  10. czesci += to_string(int_array[from]);
  11.  
  12. }
  13. return czesci;
  14. }
  15. int main()
  16. {
  17. string mystring = "";
  18. string mystring2 = "";
  19. unsigned long long temporary = 0, temporary2 = 0;
  20. unsigned long long numbersum = 0, numbersum2 = 0;
  21. unsigned long long number = 0, number2 = 0;
  22. string nums = "68392245982177412487648925492942692376861288906113304862385719584726118520844027602867175692789379917555";
  23. string charset = "qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM";
  24. string calystring = "";
  25. string dodwochznakow = "";
  26. int tab[6];
  27. int y = 0;
  28. int xx = 0;
  29.  
  30. for(int z = 0; z < 52; z++)
  31. {
  32. for(int r = 0; r < 52; r++)
  33. {
  34. for(int w = 0; w < 52; w++)
  35. {
  36. for(int u = 0; u < 52; u++)
  37. {
  38. for(int v = 0; v < 52; v++)
  39. {
  40. for(int h = 0; h < 52; h++)
  41. {
  42. calystring += charset[z];
  43. calystring += charset[r];
  44. calystring += charset[w];
  45. calystring += charset[u];
  46. calystring += charset[v];
  47. calystring += charset[h];
  48.  
  49. for(int j = 0; j < 6; j++)
  50. {
  51. int x = 0;
  52.  
  53. for(int i = 0; i < 52; i++)
  54. {
  55. if(calystring[j] == charset[i])
  56. {
  57. x = i;
  58. // cout << x << endl;
  59. break;
  60. }
  61. }
  62. y = x * 2;
  63. dodwochznakow = nums.substr(y, 2);
  64. // cout << dodwochznakow << " ";
  65. x = atoi(dodwochznakow.c_str());
  66. tab[j] = x;
  67. tab[j] *= xx;
  68. xx += x + 1;
  69. for(int l = 0; l < 6; l++)
  70. {
  71. if(l != j) tab[l] += x;
  72. // cout << l << " " << tab[l] << endl;
  73. }
  74.  
  75. }
  76. /* cout << tab[0] << endl;
  77. cout << tab[1] << endl;
  78. cout << tab[2] << endl;
  79. cout << tab[3] << endl;
  80. cout << tab[4] << endl;
  81. cout << tab[5] << endl;
  82. */
  83.  
  84.  
  85. mystring = int_array_to_string(tab,0,3);
  86. number = atoll(mystring.c_str());
  87. for (int q = 0; q < mystring.length(); q++)
  88. {
  89. numbersum = numbersum + number % 10;
  90. number = number / 10;
  91. }
  92. mystring2 = int_array_to_string(tab,3,6);
  93. number2 = atoll(mystring2.c_str());
  94. for (int q = 0; q < mystring2.length(); q++)
  95. {
  96. numbersum2 = numbersum2 + number2 % 10;
  97. number2 = number2 / 10;
  98. }
  99.  
  100. if(numbersum + numbersum2 == 0x7D) cout << calystring << " " ;
  101. // cout << calystring << " " << numbersum << " " << numbersum2 << endl;
  102. calystring = "";
  103. xx = 0;
  104. temporary = 0;
  105. temporary2 = 0;
  106. number = 0;
  107. number2 = 0;
  108. numbersum = 0;
  109. numbersum2 = 0;
  110. mystring = "";
  111. mystring2 = "";
  112.  
  113. }
  114. }
  115. }
  116. }
  117. }
  118. }
  119. }
  120. // username to "pR0-h4X";
  121. /*set y=0
  122. for /L %%j in (0,1,5) do (
  123. !%1.search! !%1.pass:~%%j,1!
  124. set /a y=!x!*2
  125. set x=nums:~!y!,2
  126. !%1.help!
  127. set /a %1.chars.%%j*=!x!
  128. for /L %%l in (0,1,5) do (
  129. if not "%%l"=="%%j" set /a %1.chars.%%l+=!x!
  130. ))
  131. */
Add Comment
Please, Sign In to add comment