Created
November 29, 2019 19:11
-
-
Save shreyansh26/c0c225fa5daa05da85bb0534dc5438a9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if(strlen(input) != 23) { | |
print_wrong; | |
return 0; | |
} | |
if((input[4] ^ 0x6c) != 0) { | |
print_wrong; | |
return 0; | |
} | |
if(input[3] + 1 != input[6]) { | |
print_wrong; | |
return 0; | |
} | |
if(input[5] + 1 != input[7]) { | |
print_wrong; | |
return 0; | |
} | |
if(input[7] + 7 != input[4]) { | |
print_wrong; | |
return 0; | |
} | |
if(input[3] - 9 != input[4]) { | |
print_wrong; | |
return 0; | |
} | |
if(input[2] + 6 != input[3]) { | |
print_wrong; | |
return 0; | |
} | |
if((input[0] ^ input[7]) != 0x16) { | |
print_wrong; | |
return 0; | |
} | |
if(input[1] + 4 != input[4]) { | |
print_wrong; | |
return 0; | |
} | |
if(input[8] != 0x5f) { | |
print_wrong; | |
return 0; | |
} | |
// used | |
if((input[12] + 1) != input[11]) { | |
print_wrong; | |
return 0; | |
} | |
if((input[10] + 2) != input[9]) { | |
print_wrong; | |
return 0; | |
} | |
if((input[10] ^ input[12]) != 0x17) { | |
print_wrong; | |
return 0; | |
} | |
if((input[12] ^ 0x64) != 0) { | |
print_wrong; | |
return 0; | |
} | |
if(input[13] != 0x5f) { | |
print_wrong; | |
return 0; | |
} | |
// some | |
if((input[17] + 8) != input[16]) { | |
print_wrong; | |
return 0; | |
} | |
if((input[15] - 2) != input[16]) { | |
print_wrong; | |
return 0; | |
} | |
if((input[14] ^ input[17]) != 0x16) { | |
print_wrong; | |
return 0; | |
} | |
if((input[16] ^ 0x6d) != 0) { | |
print_wrong; | |
return 0; | |
} | |
if(input[18] != 0x5f) { | |
print_wrong; | |
return 0; | |
} | |
// tool | |
if((input[22] + 3) != input[20]) { | |
print_wrong; | |
return 0; | |
} | |
if((input[20] + 16) != (input[21] + 16)) { | |
print_wrong; | |
return 0; | |
} | |
if((input[21] ^ input[19]) != 0x1b) { | |
print_wrong; | |
return 0; | |
} | |
if((input[22] ^ 0x6c) != 0) { | |
print_wrong; | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment