adapap

Q's Cubes Explanation

Dec 26th, 2017
173
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.22 KB | None | 0 0
  1. Q gives us his cubes arranged as a flat square on the ground. By folding the cubes over each other, North to South, and West to East, a pillar of cubes is eventually formed. Reading the letters and numbers on this pillar from top to bottom is the message that Q wants us to find.
  2.  
  3. Q's cubes are given from an aerial point of view:
  4. ABCD
  5. EFGH
  6. IJKL
  7. MNOP
  8.  
  9. Here is an album which gives each cube a color: https://imgur.com/a/8ueja
  10. This is very easy to understand if you can visualize it, so try to understand it visually first, then conceptually.
  11.  
  12. As you can see, the folds start from top to bottom, then left to right, and alternate until we have our final pillar. In our example, the message would be read as: OCBNJFGKLHEIMADP
  13.  
  14. Remember, Q's cubes have both letters and numbers on them, so they may not necessarily have only letters.
  15.  
  16. Find Q's secret message hidden in the cubes!
  17. *Hint: Q has been playing Baseball for 16 years*
  18.  
  19. [Additional Test Cases]
  20. Raw Input --> Raw Output
  21. =======================
  22. 2x2 Grid of Cubes --> 3124
  23. 12
  24. 34
  25. =======================
  26. 8x8 Grid of Cubes --> ?GB5hZemldai6CF91NKyqSVtuWRpxJO23PIwoQXvsUTrzLM08ED7jbcknfYg4AH!
  27. ABCDEFGH
  28. IJKLMNOP
  29. QRSTUVWX
  30. YZabcdef
  31. ghijklmn
  32. opqrstuv
  33. wxyz0123
  34. 456789?!
Add Comment
Please, Sign In to add comment