Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "stdafx.h"
- #include <iostream>
- #include <string>
- using namespace std;
- int _tmain(int argc, _TCHAR* argv[])
- {
- string k, a = "ABCDEFGHJKLMNPQRSTUVWXYZ23456789";
- cin >> k;
- int blah[5];
- for (int A = 0; A < 5; A++)
- blah[A] = a.find(k[A]);
- int res = blah[4] + 32 * (blah[3] + 32 * (blah[2] + 32 * (blah[1] + 32 * blah[0])));
- cout << res << endl;
- _tmain(argc, argv);
- }
Advertisement
Add Comment
Please, Sign In to add comment