Ipquarx

Untitled

Sep 22nd, 2014
263
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.39 KB | None | 0 0
  1. #include "stdafx.h"
  2. #include <iostream>
  3. #include <string>
  4. using namespace std;
  5.  
  6. int _tmain(int argc, _TCHAR* argv[])
  7. {
  8.     string k, a = "ABCDEFGHJKLMNPQRSTUVWXYZ23456789";
  9.     cin >> k;
  10.     int blah[5];
  11.     for (int A = 0; A < 5; A++)
  12.         blah[A] = a.find(k[A]);
  13.     int res = blah[4] + 32 * (blah[3] + 32 * (blah[2] + 32 * (blah[1] + 32 * blah[0])));
  14.     cout << res << endl;
  15.     _tmain(argc, argv);
  16. }
Advertisement
Add Comment
Please, Sign In to add comment