#include int main() { char cond1 = 1; char cond2 = 1; char cond3 = 1; char pass[21]; scanf("%20s", pass); // condition 1 char tab[] = {103, 40, 58, 113, 1, 112, 39, 40, 6, 62}; for (int i = 0; i < 10; i++) if ((char)(pass[2*i] ^ pass[2*i+1]) != tab[i]) cond1 = 0; //condition 2 char buff[] = "mdouhqgghighmhtjouir"; for (int i = 0; i < 20; i++) if ((pass[i] >> 4) + (pass[i] & 0xf) + 97 != buff[i]) cond2 = 0; //condition 3 char checksum[] = "UQWTX"; for (int i = 0; i < 5; i++) if ((pass[i] >> 4) + (pass[5+i] >> 4) + (pass[10+i] >> 4) + (pass[15+i] >> 4) + 65 != checksum[i]) cond3 = 0; if (cond1 & cond2 & cond3 == 1) printf("YOU WIN!!! Invite your geek friends to the facebook group CyberSecurityDZ\n(If you are able to solve this, then you must have geek friends)\n"); else printf("Try Harder!!!\n"); return 0; }