- Code: Select all
......2...87..1.94...39...1.725...6.4...7...2.1...348.9...35...73.4..92...6......
(Another Hodoku-generated puzzle.)
......2...87..1.94...39...1.725...6.4...7...2.1...348.9...35...73.4..92...6......
+------------------------+-------------------------+-------------------------+
| 1356 4569 13459 | 678 4568 4678 | 2 357 3568 |
| 2356 8 7 | a26 a256 1 | a356 9 4 |
| 256 2456 45 | 3 9 b24678 | 5678 57 1 |
+------------------------+-------------------------+-------------------------+
| 38 7 2 | 5 e148 48 | f1-3 6 9 |
| 4 69 38 | 1689 7 689 | 135 135 2 |
| 56 1 59 | 269 26 3 | 4 8 7 |
+------------------------+-------------------------+-------------------------+
| 9 24 148 | 12678 3 5 | 1678 147 68 |
| 7 3 158 | 4 d168 d68 | 9 2 568 |
| 1258 245 6 | 12789 d128 c2789 | 13578 13457 358 |
+------------------------+-------------------------+-------------------------+
*--------------------------------------------------------------------*
| 1356 4569 13459 | 678 4568 4678 | 2 357 3568 |
| 2356 8 7 |e26 cd256 1 |e356 9 4 |
| 256 2456 45 | 3 9 24678 | 5678 57 1 |
*----------------------+----------------------+----------------------|
| 38 7 2 | 5 af148 af48 |f13 6 9 |
| 4 69 38 | 1689 7 689 | 135 135 2 |
| 56 1 59 |d269 cd26 3 | 4 8 7 |
*----------------------+----------------------+----------------------|
| 9 24 148 | 12678 3 5 | 1678 147 68 |
| 7 3 158 | 4 b168 b68 | 9 2 568 |
| 1258 245 6 | 12789 b128 2789 | 13578 13457 358 |
*--------------------------------------------------------------------*
*----------------------------------------------------------------------------*
| 1356 4569 13459 | 678 4568 4678 | 2 357 3568 |
| 2356 8 7 | 26 256 1 | 356 9 4 |
| 256 2456 45 | 3 9 24678 | 5678 57 1 |
|------------------------+-------------------------+-------------------------|
| d38 7 2 | 5 48-1 48 | d13 6 9 |
| 4 69 38 | 1689 7 689 | 135 135 2 |
|c#56 1 59 | 269 c#26 3 | 4 8 7 |
|------------------------+-------------------------+-------------------------|
| 9 24 148 | 12678 3 5 | 1678 147 68 |
| 7 3 a158 | 4 b#168 b68 | 9 2 568 |
| #1258 245 6 | 12789 b#128 2789 | 13578 13457 358 |
*----------------------------------------------------------------------------*
eleven wrote:Nice chain by Cenoman. Alternatively you can go this way:
(1=682)b8p568 - r9c6 = r3c6 - r3c12 = (2-3)r2c1 = 31r24c7 => -1r4c5
eleven wrote:Don't see the link (1682)b8p5689 = r3c6
(1682)b8p5689 can be
(168)b8p568 & 2b8p9, if not => 2r3c6
or
(168)b8p569 & 2b8p8, if not, what?
char O,o[];main(l){for(;~l;O||puts(o))O=(O[o]=~(l=getchar())?4<(4^l>>5)?l:46:0)?-~O&printf("%02x ",l)*5:!O;}
ff d8 ff e0 00 10 4a 46 49 46 00 01 01 01 00 48 ......JFIF.....H
00 48 00 00 ff e1 15 ca 45 78 69 66 00 00 4d 4d .H......Exif..MM
00 2a 00 00 00 08 00 0b 01 0f 00 02 00 00 00 08 .*..............
00 00 00 92 01 10 00 02 00 00 00 09 00 00 00 9a ................
01 12 00 03 00 00 00 01 00 01 00 00 01 1a 00 05 ................
00 00 00 01 00 00 00 a4 01 1b 00 05 00 00 00 01 ................
00 00 00 ac 01 28 00 03 00 00 00 01 00 02 00 00 .....(..........
01 31 00 02 00 00 00 0e 00 00 00 b4 01 32 00 02 .1...........2..
00 00 00 14 00 00 00 c2 02 13 00 03 00 00 00 01 ................
00 01 00 00 87 69 00 04 00 00 00 01 00 00 00 d6 .....i..........
88 25 00 04 00 00 00 01 00 00 03 82 00 00 04 52 .%.............R
73 61 6d 73 75 6e 67 00 53 4d 2d 47 39 35 30 46 samsung.SM-G950F
00 00 00 00 00 48 00 00 00 01 00 00 00 48 00 00 .....H.......H..
00 01 47 39 35 30 46 58 58 55 31 43 52 42 37 00 ..G950FXXU1CRB7.
32 30 31 38 3a 31 30 3a 31 35 20 30 39 3a 31 31 2018:10:15 09:11
3a 31 31 00 00 20 82 9a 00 05 00 00 00 01 00 00 :11.. ..........
eleven wrote:Correct and bitchy.
Again it reminds me on the International Obfuscated C Code Contest.
Yours is a Contest for Obfuscated AIC chains.
A C Code sample is the program:
- Code: Select all
char O,o[];main(l){for(;~l;O||puts(o))O=(O[o]=~(l=getchar())?4<(4^l>>5)?l:46:0)?-~O&printf("%02x ",l)*5:!O;}
It prints a hexdump (hexadecimal ascii codes) plus printable characters of an input file. Clear and brief. A normal implementation probably would use 20 to 30 lines.
#include <stdio.h>
#include <ctype.h>
#define BUFFER_SIZE 16
char buf[BUFFER_SIZE];
int main() {
for (int c=getchar(), n=0; c!=EOF; c=getchar(), n=(n+1)%BUFFER_SIZE) {
printf("%02x ", c);
buf[n] = isprint(c) ? (char)c : '.';
n < (BUFFER_SIZE-1) ? buf[n+1]='\0' : puts(buf);
}
puts(buf);
return 0;
}