Level 5 - State Introduction (Puzzle 1)
Below is a puzzle involving 24 input buffers and their transformed outputs. Each buffer is exactly 64 bytes, shown in hex. Your task: Figure out the logic of the transformation used to go from the INPUT to the OUTPUT. Then, provide a Python function that, given any new 64-byte buffer, will produce the correct transformed output. Here are the 24 input (SRC) buffers in hex (one line per buffer): INPUT #01: 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 INPUT #02: ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff INPUT #03: 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 INPUT #04: 02000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 INPUT #05: 80000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 INPUT #06: aa000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 INPUT #07: 00ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff INPUT #08: f0ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff INPUT #09: 0fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff INPUT #10: 55ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff INPUT #11: 000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f202122232425262728292a2b2c2d2e2f303132333435363738393a3b3c3d3e3f INPUT #12: fffefdfcfbfaf9f8f7f6f5f4f3f2f1f0efeeedecebeae9e8e7e6e5e4e3e2e1e0dfdedddcdbdad9d8d7d6d5d4d3d2d1d0cfcecdcccbcac9c8c7c6c5c4c3c2c1c0 INPUT #13: aa55aa55aa55aa55aa55aa55aa55aa55aa55aa55aa55aa55aa55aa55aa55aa55aa55aa55aa55aa55aa55aa55aa55aa55aa55aa55aa55aa55aa55aa55aa55aa55 INPUT #14: 55aa55aa55aa55aa55aa55aa55aa55aa55aa55aa55aa55aa55aa55aa55aa55aa55aa55aa55aa55aa55aa55aa55aa55aa55aa55aa55aa55aa55aa55aa55aa55aa INPUT #15: f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0 INPUT #16: 0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f INPUT #17: 01010101010101010202020202020202040404040404040408080808080808081010101010101010202020202020202040404040404040408080808080808080 INPUT #18: 01010101020202020202020203030303040404040505050508080808090909090101010102020202020202020303030304040404050505050808080809090909 INPUT #19: 0102040810204080010204081020408001020408102040800102040810204080fefdfbf7efdfbf7ffefdfbf7efdfbf7ffefdfbf7efdfbf7ffefdfbf7efdfbf7f INPUT #20: 48656c6c6f2c20576f726c64212048656c6c6f2c20576f726c64212048656c6c6f2c20576f726c64212048656c6c6f2c20576f726c64212048656c6c6f2c2057 INPUT #21: 4c6f72656d20697073756d20646f6c6f722073697420616d65742c20636f6e73656374657475722061646970697363696e6720656c69742c2073656420646f20 INPUT #22: 0101020305080d1522375990e97962db3d18556dc22ff12011314273b528dd05e2e7c9b07929a2cb6d38a5dd825fe140216182e36548adf5a29739d009d9e2bb INPUT #23: 789b34caf54f2e220acd941e71b88d5836866d0d858b63549e94be2cacc67f5b7ef28f2d9903959f63d3d893dce752779c84162917ec8ff1af4a6422d367e18d INPUT #24: c5d71484f8cf9bf4b76f47904730804b9e3225a9f133b5dea168f4e2851f072fcc00fcaa7ca62061717a48e52e29a3fa379a953faa6893e32ec5a27b945e605f And here are the corresponding transformed outputs (DST) in hex: OUTPUT #01: 10101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010 OUTPUT #02: aa0faa0faa0faa0faa0faa0faa0faa0faa0faa0faa0faa0faa0faa0faa0faa0faa0faa0faa0faa0faa0faa0faa0faa0faa0faa0faa0faa0faa0faa0faa0faa0f OUTPUT #03: 11101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010 OUTPUT #04: 12101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010 OUTPUT #05: d5555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555 OUTPUT #06: ff555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555 OUTPUT #07: 10aa0faa0faa0faa0faa0faa0faa0faa0faa0faa0faa0faa0faa0faa0faa0faa0faa0faa0faa0faa0faa0faa0faa0faa0faa0faa0faa0faa0faa0faa0faa0faa OUTPUT #08: a50faa0faa0faa0faa0faa0faa0faa0faa0faa0faa0faa0faa0faa0faa0faa0faa0faa0faa0faa0faa0faa0faa0faa0faa0faa0faa0faa0faa0faa0faa0faa0f OUTPUT #09: 1faa0faa0faa0faa0faa0faa0faa0faa0faa0faa0faa0faa0faa0faa0faa0faa0faa0faa0faa0faa0faa0faa0faa0faa0faa0faa0faa0faa0faa0faa0faa0faa OUTPUT #10: 65aa0faa0faa0faa0faa0faa0faa0faa0faa0faa0faa0faa0faa0faa0faa0faa0faa0faa0faa0faa0faa0faa0faa0faa0faa0faa0faa0faa0faa0faa0faa0faa OUTPUT #11: 101112131415161718191a1b1c1d1e1f202122232425262728292a2b2c2d2e2f303132333435363738393a3b3c3d3e3f404142434445464748494a4b4c4d4e4f OUTPUT #12: aa0ea80cae0aac08a206a004a602a400bafeb8fcbefabcf8b2f6b0f4b6f2b4f08aee88ec8eea8ce882e680e486e284e09ade98dc9eda9cd892d690d496d294d0 OUTPUT #13: ff00ba65ff00ba65ff00ba65ff00ba65ff00ba65ff00ba65ff00ba65ff00ba65ff00ba65ff00ba65ff00ba65ff00ba65ff00ba65ff00ba65ff00ba65ff00ba65 OUTPUT #14: 65ff00ba65ff00ba65ff00ba65ff00ba65ff00ba65ff00ba65ff00ba65ff00ba65ff00ba65ff00ba65ff00ba65ff00ba65ff00ba65ff00ba65ff00ba65ff00ba OUTPUT #15: a500a500a500a500a500a500a500a500a500a500a500a500a500a500a500a500a500a500a500a500a500a500a500a500a500a500a500a500a500a500a500a500 OUTPUT #16: 1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f OUTPUT #17: 1111111111111111121212121212121214141414141414141818181818181818202020202020202030303030303030305050505050505050d590d590d590d590 OUTPUT #18: 11111111121212121212121213131313141414141515151518181818191919191111111112121212121212121313131314141414151515151818181819191919 OUTPUT #19: 11121418203050d55457515d4575159011121418203050d55457515d45751590ab0dae07baefea2a0ea80ba2ff8acf8fab0dae07baefea2a0ea80ba2ff8acf8f OUTPUT #20: 58757c7c7f3c30677f827c74313058757c7c7f3c30677f827c74313058757c7c7f3c30677f827c74313058757c7c7f3c30677f827c74313058757c7c7f3c3067 OUTPUT #21: 5c7f82757d30798083857d30747f7c7f823083798430717d75843c30737f7e83757384758485823071747980798373797e7730757c79843c3083757430747f30 OUTPUT #22: 1111121315181d25324769c5f989728e684d0038d23fa47544641726c5388850f2b2d9e52c7cb29e386db588926fb415743492b6301dbda0b2c26ce0198cf2ee OUTPUT #23: 88ce61daa01a7b775fddc14b24c8d80d63967d1dd09b7364cba4eb79bc932a0e2b02da78a913c0af7386e8c6ecb20722acd1437c42fcda01fa1f3177e377b49d OUTPUT #24: 90e724d1089aaba1c77f57c51265905bcb6770b9a466c58bb178a1f2d04a527adc10a9ba8cf37534242f1df53e39f60a47cfa54fff3da3b67bd5f72ea46e706f Instructions: - Return just your best possible approximation as a small python function that takes a 64 byte array as input, and returns the 64 byte array as output. - Remember, the transformation is the same for all 24 buffers. - The function will be scored by the number of buffers that are correctly transformed (as shown in the 24 outputs). - And it also will be tested on another set of 24 hidden input buffers not shown in the prompt. - Do not include anything else in your response, no introduction text or explanations. Example Output: def transform(data: bytes) -> bytes: # Transform logic return bytes
Copy Puzzle Prompt
Submit your solution:
def transform(data: bytes) -> bytes: # Your solution here return data
Submit
Leaderboard