fork(6) download
  1. #include <string>
  2. #include <iostream>
  3. #include <iomanip>
  4.  
  5. using namespace std;
  6.  
  7. int GetCode(const string& St)
  8. {
  9. int N = 0;
  10. for (int i = 0; i < St.length(); i++)
  11. {
  12. int C = (int)St[i];
  13. N = N * 10 + C * C;
  14. }
  15. return N;
  16. }
  17.  
  18. int main(int argc, const char * argv[])
  19. {
  20. const string s = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
  21.  
  22. string test = " ";
  23. for(char c = 102; c <= 110; ++c)
  24. {
  25. test[0] = c;
  26. for(auto c1: s)
  27. {
  28. test[1] = c1;
  29. for(auto c2: s)
  30. {
  31. test[2] = c2;
  32. for(auto c3: s)
  33. {
  34. test[3] = c3;
  35. for(auto c4: "04DHNRXbflpvz")
  36. {
  37. test[4] = c4;
  38. if (GetCode(test) == 122294884)
  39. cout << test << endl;
  40. }
  41. }
  42. }
  43. }
  44. }
  45. }
  46.  
Success #stdin #stdout 0.13s 15240KB
stdin
Standard input is empty
stdout
ikCvX
jaF6R
kPu8D
kUEbX
kUHJR
kV2xz
lDaXp
lFPdz
lFPhR
m0k8D
m1cbX
m3Uzp
m5P6R
m6FPz
m6I8D