Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- string val = "123456";
- int ans[6] = {0xB3, 0xC0, 0x01, 0xB3, 0xB0, 0xD4};
- if ((val[0] + 0x100) % (0x100) == ans[0]) {
- if ((val[1] + 0x100) % (0x100) == ans[1]) {
- if ((val[2] + 0x100) % (0x100) == ans[2]) {
- if ((val[3] + 0x100) % (0x100) == ans[3]) {
- if ((val[4] + 0x100) % (0x100) == ans[4]) {
- if ((val[5] + 0x100) % (0x100) == ans[5]) {
- cout << "Congratulations";
- return 0;
- }
- }
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement