Advertisement
Guest User

Untitled

a guest
Sep 21st, 2019
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  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. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement