SHARE
TWEET

Untitled

a guest Sep 21st, 2019 73 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main()
  5. {
  6.     string val = "123456";
  7.     int ans[6] = {0xB3, 0xC0, 0x01, 0xB3, 0xB0, 0xD4};
  8.     if ((val[0] + 0x100) % (0x100) == ans[0]) {
  9.         if ((val[1] + 0x100) % (0x100) == ans[1]) {
  10.             if ((val[2] + 0x100) % (0x100) == ans[2]) {
  11.                 if ((val[3] + 0x100) % (0x100) == ans[3]) {
  12.                     if ((val[4] + 0x100) % (0x100) == ans[4]) {
  13.                         if ((val[5] + 0x100) % (0x100) == ans[5]) {
  14.                             cout << "Congratulations";
  15.                             return 0;
  16.                     }
  17.                 }
  18.             }
  19.         }
  20.     }
  21. }
  22. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top